spyglass
spyglass copied to clipboard
Clean up /recording more automatically?
It appears that there are a number of old recording directories in /stelmo/nwb/recording/ corresponding to entries in an old version of the SpikeSortingRecording table that has since been dropped. If there isn't already a method that cleans these up, it might be nice to add.
Related to this - I interrupted a populate() call on SpikeSortingRecording, and upon re-running later, I got an error that the directory corresponding to that table entry already existed in /stelmo/nwb/recording/. Rather than the code reusing or overwriting the existing dir, I had to delete that empty dir manually. This was fine of course, but it could be nice if there was some clean-up functionality here too. For ex, so that directories and files are cleaned up from stelmo in cases where final insertion into the table failed for whatever reason.
None of this is "blocking" but would be nice to avoid building up unnecessary data on stelmo if possible. Thanks.