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

[Export] `fetch_nwb` assumes fetching table inherits the mixin #1185

Open CBroz1 opened 1 week ago

CBroz1 commented 1 week ago

The use of log_export in fetch_nwb assumes that the query expression has our custom join

https://github.com/LorenFrankLab/spyglass/blob/239f2a5912db3a7ae07aab8576b13a097ca7e699/src/spyglass/utils/dj_helper_fn.py#L238-L242

This should be edited to first run a check that query_expression is an instance of SpyglassMixin