Closed rpswenson closed 3 weeks ago
It looks like convert_epoch_interval_name
does return an empty list for a non-existent interval when populate_missing
is set to false. My memory is that @samuelbray32 developed this table, so it's worth asking him why...
DLCPosVideo
sets populate_missing
to False
convert_epoch
returns an empty list, rather than raising an errorIt would make sense to me to set populate_missing
to True
here, but I would want to check before making a fix
In the short term, you can try running the following before rerunning the populate
from spyglass.common.common_behav import (
convert_epoch_interval_name_to_position_interval_name,
)
convert_epoch_interval_name_to_position_interval_name(
{
"nwb_file_name": your_file,
"epoch": your_epoch,
},
populate_missing = True
)
Ok, I'll ask Sam about it when he's back from time off. I tried running the cell you suggested but it did not seem to like that there weren't any pos intervals:
from spyglass.common.common_behav import (
convert_epoch_interval_name_to_position_interval_name,
)
convert_epoch_interval_name_to_position_interval_name(
{
"nwb_file_name": "RS1220240810_.nwb",
"epoch": 8,
},
populate_missing = True
)
[14:40:18][ERROR] Spyglass: NO POS INTERVALS FOR {'nwb_file_name': 'RS1220240810_.nwb', 'interval_list_name': '08_r4'}; CANNOT POPULATE PositionIntervalMap
[14:40:18][INFO] Spyglass: No position intervals found for {'nwb_file_name': 'RS1220240810_.nwb', 'epoch': 8, 'interval_list_name': '08_r4'}
[]
no trodes position
It may be that the previous effort to use this pipeline without trodes position did not consider video creation step
could someone else take a look at this since sam is out all of next week?
Describe the bug The DLCPosVideo table is unable to be populated, potentially due to a missing interval list?
To Reproduce
Error stack:
Looking at
interval_name
in this line:--> 354 int(interval_name.replace("pos ", "").replace(" valid times", ""))
shows an empty list. I'm not sure if this is expected or not, given that we have no trodes position