LorenFrankLab / spyglass

Neuroscience data analysis framework for reproducible research built by Loren Frank Lab at UCSF
https://lorenfranklab.github.io/spyglass/
MIT License
94 stars 43 forks source link

set close_file to False to allow fetching position info df #1182

Closed jguides closed 1 week ago

jguides commented 1 week ago

Without this change, fetch1_dataframe in IntervalPositionInfo results in the following error: RuntimeError: Unable to synchronously get dataspace (invalid dataset identifier)

samuelbray32 commented 1 week ago

Is this issue on current spyglass? I'm not experiencing the fetch1_dataframe issue on this table, nor can I find a close_file option in the code

jguides commented 1 week ago

Is this issue on current spyglass? I'm not experiencing the fetch1_dataframe issue on this table, nor can I find a close_file option in the code

@samuelbray32 you are right, looks like recent changes already avoid this error. Sorry about that and thanks for noticing.