From 26ef65db85c1cec4a10c0828ea729d637898adb2 Mon Sep 17 00:00:00 2001 From: Ryan Ly Date: Thu, 15 Aug 2024 09:10:05 -0700 Subject: [PATCH] Add optional value column to EventsTable --- src/spec/create_extension_spec.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/spec/create_extension_spec.py b/src/spec/create_extension_spec.py index 32a5f60..1830422 100644 --- a/src/spec/create_extension_spec.py +++ b/src/spec/create_extension_spec.py @@ -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="?", + ), ], )