spyglass icon indicating copy to clipboard operation
spyglass copied to clipboard

Ambiguous table name on `increment_access` during `fetch_nwb`

Open CBroz1 opened this issue 10 months ago • 0 comments

The function to determine the fetch_nwb calling table from the stack

https://github.com/LorenFrankLab/spyglass/blob/e23d1fd8c69a114fe93cfd7094c6da714c7e6fa2/src/spyglass/utils/dj_helper_fn.py#L115-L132

finds multiple entries when using either of the following

LFPArtifactDetection().populate(key)
LFPBandV1().populate(key)

This is not an issue for these cases, because the entry already exists in the log table. We may experience problems if other processes fail to find the calling table and the file is not already in the log table

CBroz1 avatar Apr 23 '24 20:04 CBroz1