esi-neuroscience / oephys2nwb

Export Open Ephys binary data to NWB 2.0
BSD 3-Clause "New" or "Revised" License
3 stars 2 forks source link

Safer way to check number of experiments #4

Closed KatharineShapcott closed 1 year ago

KatharineShapcott commented 2 years ago

I got the following error: ValueError: Found 2 experiments in /gs/home/shapcottk/ZeroNoise/departmentN5/4Katharine/testrecording_2021-11-09_17-06-14/Record Node 106

The supposed second experiment turned out to be a hidden directory: /gs/home/shapcottk/ZeroNoise/departmentN5/4Katharine/testrecording_2021-11-09_17-06-14/Record Node 106/.ipynb_checkpoints

I guess we should minimally ignore folders starting with . or possibly do a better filtering there.

pantaray commented 2 years ago

Hi! Yes, very good point. I explicitly included the names of the experiment/recording folders auto-generated by the open ephys GUI (since those are hard-coded anyway) cf. 7f4af46 Feel free to test-drive whenever you have time. Thank you!