Refactors Trials class to contain instance methods and properties. Before these were in functions in trial_processing which were called in BehaviorSession class. Adding these to Trials class instead allows us to instantiate Trials rather than BehaviorSession to get all of the trials logic. Instantiating BehaviorSession loads a lot more than just trials.
Add trials metrics to VisualBehaviorOphysProjectCache.get_behavior_session_table
Make this optional so that the table can still be loaded on the fly
2570
Trials
class to contain instance methods and properties. Before these were in functions intrial_processing
which were called inBehaviorSession
class. Adding these toTrials
class instead allows us to instantiateTrials
rather thanBehaviorSession
to get all of the trials logic. InstantiatingBehaviorSession
loads a lot more than just trials.VisualBehaviorOphysProjectCache.get_behavior_session_table