Open stef1029 opened 1 month ago
Hi Stefan,
The structure files are actually generated at the start of each recording. We haven't seen any cases where only the structure file is missing.
Did anything in your configuration change between the healthy recordings and those triggering this error? Are you using a script to start/stop recording? If so, can you send any scripts and/or one of these incomplete recordings to pavel@open-ephys.org?
Update:
Tested and confirmed the structure file writing can get skipped if the GUI is quit before recording is finished. This can currently only happen if QUIT is called in quick succession after IDLE when using the HTTPServer.
The workaround for now is to ensure a sufficient time.sleep(N) is inserted between idle() and quit() calls when controlling the GUI via the HTTPServer. However this is imprecise and unenforceable.
As a robust solution, I will add a check in the GUI's HTTPServer quit() method to ensure all recording threads have finished prior to closing the GUI.
Hi,
I'm having another issue with loading some data I've recorded. The error I'm getting is this:
I'm not sure why these files are having these issues regarding issues at the time of recording. I did, however, notice that a large number of my recording files had not saved the structure.openephys file at the end of recording. When i originally tried to load these files I got the error
IndexError: list index out of range
from the lineself.recording = open_ephys.analysis.Session(self.dirname).recordnodes[0].recordings[0].continuous[0]
.To try and fix this, I tried transplanting in structure files from healthy folders, however that is when I started getting this error. The contents of the structure files seems to be correct, unless bitVolts is the cause of the issue. Primarily I'm wondering if there's something I can do to fix this issue, and if there are any known reasons why the structure files failed to save in the first place. It's happened on a very large number of recordings over the last couple weeks, so I don't think anything was happening obviously indicating a failure at the ends of recordings as I would have noticed this number of crashes or something like that.
Thanks very much for any help you can give,
Stefan