LorenFrankLab / rec_to_nwb

Data Migration REC -> NWB 2.0 Service
Other
2 stars 8 forks source link

Refactor old dataset processing #9

Closed jihyunbak closed 3 years ago

jihyunbak commented 3 years ago

Instead of using parallel pipelines for processing old datasets, this PR refactors the "main" line of processing modules to handle both new and old datasets. This does not affect the processing of the new datasets.

Old dataset processing option is controlled by two boolean variables hard-coded to NWBFileBuilder, convert_timestamps and return_timestamps. The switches are by default turned on (True) for the new datasets, but can be turned off (False) for old datasets that do not include properly adjusted real timestamps. Behavior before this PL was equivalent to both switches set to False.

New default setting for old datasets: