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

First attribute read as log_export in fetch_nwb #1173

Closed samuelbray32 closed 2 weeks ago

samuelbray32 commented 3 weeks ago

Describe the bug

To Reproduce

from spyglass.position.v1 import DLCPosV1
key = {'nwb_file_name': 'Bilbo20230802_.nwb', 'epoch': 2, 'interval_list_name': 'pos 1 valid times'}
key = (DLCPosV1() & key).fetch("KEY")
(DLCPosV1() & key).fetch_nwb()

Solution Make log_export part of the kwargs and assign a default value in the function

samuelbray32 commented 3 weeks ago

Sorry, this issue isn't part of the master branch yet. Relevant fix needed in the #1164 PR