Other notable changes: adds stimulus_name and stimulus_block columns to denote stimulus block. Helpful for differentiating different blocks in a session.
Adds a column is_image_novel
This value is True when the mouse has not seen this image before, False when it has, and nan when it doesn't apply (i.e when the image was omitted or when it is not an image, i.e grating)
Other notable changes
allows missing report line value, which is valid in vbn mice, instead of issuing a warning, which is excessive when loading sessions for many mice
replaces some database queries for multiple sessions (i.e. when generating metadata table) with BehaviorMetadata class to reduce code paths. This is arguably less efficient since this class pulls data for a single session while the database queries pulls data at once for multiple sessions but reduces number of code paths and doesn't require us to patch data separately from stimuls file since BehaviorMetadata pulls from the correct data source.
Addresses #1190 Addresses #2515
This PR adds 2 improvements to the visual behavior stimulus presentations table:
Adds records for fingerprint stimulus if it exists
Other notable changes: adds
stimulus_name
andstimulus_block
columns to denote stimulus block. Helpful for differentiating different blocks in a session.Adds a column
is_image_novel
This value is True when the mouse has not seen this image before, False when it has, and nan when it doesn't apply (i.e when the image was omitted or when it is not an image, i.e grating)
Other notable changes
BehaviorMetadata
class to reduce code paths. This is arguably less efficient since this class pulls data for a single session while the database queries pulls data at once for multiple sessions but reduces number of code paths and doesn't require us to patch data separately from stimuls file sinceBehaviorMetadata
pulls from the correct data source.