Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify structure.oebin to remove missing probe folders [openscope] #10

Closed
1 of 7 tasks
bjhardcastle opened this issue Mar 20, 2024 · 0 comments
Closed
1 of 7 tasks
Assignees

Comments

@bjhardcastle
Copy link
Member

bjhardcastle commented Mar 20, 2024

The upload pipeline currently crashes if there are probes in the structure.oebin file that aren't present in the recording folder. Currently, this affects openscope sessions, where only the raw data for inserted probes has been uploaded to lims: non-inserted probes are listed in structure.oebin, but their data is missing at the point of upload.

The actual failure happens during compression, when metadata is parsed in order to find data folders:
https://github.com/NeuralEnsemble/python-neo/blob/master/neo/rawio/openephysbinaryrawio.py#L79

  • add a function to upload.py to "fix" the metadata
    • should run after creating ephys symlinks
    • read structure.oebin file's contents (np_tools has a helper function for this)
    • iterate over all devices in relevant sections
      • check if each device folder exists
    • for all that don't exist, remove everywhere in the file contents
    • overwrite the symlink with a new modified file: CAUTION be careful not to modify the file original!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants