Skip to content

Commit

Permalink
Add optional value column to EventsTable
Browse files Browse the repository at this point in the history
  • Loading branch information
rly authored Aug 15, 2024
1 parent eb7c974 commit 26ef65d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/spec/create_extension_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,19 @@ def main():
doc="Optional column containing the duration of each event, in seconds.",
quantity="?",
),
NWBDatasetSpec(
name="value",
neurodata_type_inc="VectorData",
doc=(
"Optional column containing a value/parameter associated with each event. "
"For example, if you have three levels of reward (e.g., 1 drop, 2 drops, "
"3 drops), instead of encoding each level of reward as its own event "
"type (e.g., 'reward_value_1', 'reward_value_2', 'reward_value_3', "
"you could encode 'reward' as the event type, and the value for each "
"event time could be 1, 2, or 3."
),
quantity="?",
),
],
)

Expand Down

0 comments on commit 26ef65d

Please sign in to comment.