Improve documentation for use of Trials in `AlignmentEvent`
Closed this issue · 1 comments
CBroz1 commented
Internally, we used the following examples for potential uses of AlignmentEvent
:
trial_start cue_on response trial_end
- align to
cue-on
, 1-sec aftertrial_start
and 2-sec beforetrial_end
- alignment_event_type = 'cue-on'
- alignment_time_shift = 0
- start_event_type = 'trial_start'
- start_time_shift = 1
- end_event_type = 'trial_end'
- end_time_shift = -2
- align to
response
, 3-sec beforeresponse
and 5-sec afterresponse
- alignment_event_type = 'response'
- alignment_time_shift = 0
- start_event_type = 'response'
- start_time_shift = -3
- end_event_type = 'response'
- end_time_shift = 2
If I'm entering in my trials in the trial schema, I need to duplicate this information in the EventType
and Event
tables to get item 1 above. Is this the intended structure? If so, I think we should provide a helper function that adds trial start/stop as events automatically. Alternatively, can the proj
functions in AlignmentEvent
be restructured to inherit from either source?
ttngu207 commented
For such use-case, trial_start_time
and trial_end_time
are meant to be events to be inserted into the Event
table