Skip to content

Commit

Permalink
Fix schema error when running ecephys write_nwb with LIMS
Browse files Browse the repository at this point in the history
LIMS calls the write_nwb module and specifies ecephys channel
structure id and acronym as `manual_structure_id` and
`manual_structure_acronym` in the input json.

It appears #1075 modified the ecephys write_nwb schema
from the expected values.

This commit changes back the ecephys write_nwb schema to expect:
`manual_structure_id` and `manual_structure_acronym`.
  • Loading branch information
njmei committed Apr 16, 2020
1 parent 2bd3776 commit 40d59f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions allensdk/brain_observatory/ecephys/write_nwb/_schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ class Channel(RaisingSchema):
local_index = Int(required=True)
probe_vertical_position = Int(required=True)
probe_horizontal_position = Int(required=True)
structure_id = Int(required=True, allow_none=True)
structure_acronym = String(required=True, allow_none=True)
manual_structure_id = Int(required=True, allow_none=True)
manual_structure_acronym = String(required=True, allow_none=True)


class Unit(RaisingSchema):
Expand Down

0 comments on commit 40d59f1

Please sign in to comment.