BouchardLab / process_nwb

Functions for preprocessing timeseries data stored in the NWB format
https://process-nwb.readthedocs.io/en/latest/
4 stars 6 forks source link

Adding copy script #52

Closed jthermiz closed 2 years ago

jthermiz commented 2 years ago

Added a script to strip the preprocessing and copy the stripped nwb to a new file. There is an option to overwrite the original file as well. This script is helpful because pynwb does not easily support overwriting nwb files.

jthermiz commented 2 years ago

I'm a bit wary of having the default option be to overwrite nwb files. IMO, users should have to specify that they want to overwrite things.

I changed the behavior so that the user has to provide the same destination file in order to overwrite the source file.

I also changed the file name to be shorter and checked for flake8 errors