Experiment version pattern
(Moved from #64 (comment 871044604).)
The idea is to introduce an experiment version pattern to be manually inserted in the config file by the user so that it becomes easier to integrate new files and/or new experiment types.
The experiment version pattern proposed would be the following: vYYYY.MM:type-of-experiment[+optional-experimenter-name][:optional-label]
, which could give something like the following:
v2021.05:2p_imaging_head_fixed+Simon:Teensy
v2019.07:2p_imaging_head_fixed+Max:Teensy
v2021.04:2p_imaging_head_fixed+Max:Teensy_spontaneous-activity
v2022.09:1p_imaging_freely_moving+Olivia
Refactoring needed:
-
Make the whole experiment an input of the config file + add tests -
Change the experiment versioning from semantic versioning to calendar versioning (I thinks it makes more sense to think of different versions of files in a timeline more than with arbitrary numbers) -
Create a new error message that outputs the allowed versions of the Teensy files -
Document the allowed experiment versions -
Print the experiment version in the terminal before confirming to run the conversion to NWB + add a test
Edited by Andrea PIERRÉ