michaelschaub / calcium-imaging-analysis

3 stars 1 forks source link

SVD/Decomposition class should support conditions #2

Closed DaminK closed 3 years ago

DaminK commented 3 years ago

Currently we work with lists of SVDData elements for the different conditions. Maybe a method were we can set an array of filter maps, corresponding to the different conditions we want to look at, e.g. svd.condition_filters = (svd_pre.modality == modal) & (svd_pre.target_side_left == side)] for modal, side in itertools.product(modal_range,side_range) And a corresponding get_method were you only get the filterred trials (according to the definend filters), e.g. svd.condition[0] = ... #filtered for ['visual','right']

DaminK commented 3 years ago

Implemented, currently a little bit too complicated but working. Will restructure it a bit and document it further