Skip to content

Commit dfb4f32

Browse files
committed
make stimulus signal optional
1 parent 4e3328c commit dfb4f32

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

src/spec/create_extension_spec.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -317,9 +317,7 @@ def main():
317317
NWBDatasetSpec(
318318
name="spatial_filter_cameras_index",
319319
neurodata_type_inc="VectorIndex",
320-
doc=(
321-
"Index column for `spatial_filter_cameras` so that each epoch can have multiple cameras."
322-
),
320+
doc=("Index column for `spatial_filter_cameras` so that each epoch can have multiple cameras."),
323321
quantity="?",
324322
),
325323
NWBDatasetSpec(
@@ -406,18 +404,14 @@ def main():
406404
NWBDatasetSpec(
407405
name="speed_filter_threshold_in_cm_per_s",
408406
neurodata_type_inc="VectorData",
409-
doc=(
410-
"If the speed filter was used, the threshold for detecting a fast/slow animal, in cm/s."
411-
),
407+
doc=("If the speed filter was used, the threshold for detecting a fast/slow animal, in cm/s."),
412408
dtype="float",
413409
quantity="?",
414410
),
415411
NWBDatasetSpec(
416412
name="speed_filter_on_above_threshold",
417413
neurodata_type_inc="VectorData",
418-
doc=(
419-
"If the speed filter was used, True if active when speed above threshold."
420-
),
414+
doc=("If the speed filter was used, True if active when speed above threshold."),
421415
dtype="bool",
422416
),
423417
NWBAttributeSpec(
@@ -426,6 +420,7 @@ def main():
426420
doc=(
427421
"Timeseries of the delivered stimulus. Can be continuous values or time of digital on/off events."
428422
),
423+
required=False,
429424
dtype=NWBRefSpec(
430425
target_type="TimeSeries",
431426
reftype="object",

0 commit comments

Comments
 (0)