Skip to content

Commit

Permalink
enforced 1D commanded voltages
Browse files Browse the repository at this point in the history
  • Loading branch information
pauladkisson committed Jul 23, 2024
1 parent a9872a3 commit f045de4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions spec/ndx-fiber-photometry.extensions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,7 @@ groups:
- name: data
dtype: float
shape:
- - null
- - null
- null
- null
doc: Voltages (length number timesteps) in unit volts.
attributes:
- name: unit
Expand Down
4 changes: 2 additions & 2 deletions src/spec/create_extension_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ def main():
name="commanded_voltage_series",
doc="Link to the commanded voltage series.",
dtype=NWBRefSpec(target_type="TimeSeries", reftype="object"),
shape=((None, )),
shape=(None,),
neurodata_type_inc="VectorData",
quantity="?",
),
Expand Down Expand Up @@ -394,7 +394,7 @@ def main():
name="data",
doc="Voltages (length number timesteps) in unit volts.",
dtype="float",
shape=((None, ), (None, None)),
shape=(None,),
attributes=[NWBAttributeSpec(name="unit", doc="data unit", value="volts", dtype="text")],
),
NWBDatasetSpec(
Expand Down

0 comments on commit f045de4

Please sign in to comment.