-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
Description
When I'm investigating another issue, I noticed that there are many sessions in docDB that have "fib" in data_description.modality but not in rig.modalities. For example:
{
"_id": "625df1c2-1b38-4875-9a5f-09bbaca0e213",
"data_description": {
"name": "behavior_751152_2024-10-13_16-07-35",
"modality": [
{
"name": "Behavior",
"abbreviation": "behavior"
},
{
"name": "Behavior videos",
"abbreviation": "behavior-videos"
},
{
"name": "Fiber photometry",
"abbreviation": "fib"
}
]
},
"rig": {
"modalities": [
{
"name": "Behavior",
"abbreviation": "behavior"
},
{
"name": "Behavior videos",
"abbreviation": "behavior-videos"
}
]
}
},
{
"_id": "fbb5bb77-fef3-4f3b-93f2-560a8565488d",
"data_description": {
"name": "behavior_764787_2024-10-15_13-07-30",
"modality": [
{
"name": "Behavior",
"abbreviation": "behavior"
},
{
"name": "Behavior videos",
"abbreviation": "behavior-videos"
},
{
"name": "Fiber photometry",
"abbreviation": "fib"
}
]
},
"rig": {
"modalities": [
{
"name": "Behavior",
"abbreviation": "behavior"
},
{
"name": "Behavior videos",
"abbreviation": "behavior-videos"
}
]
}
}Here is the query showing all sessions with this problem.
We should:
- locate and fix the root cause,
presumbly in how we generated. @XX-Yin @micahwoodardrig.json - Correct
data_descriptionin docDB #1089 - In the long run, a compatibility check should catch this kind of cross-validation problem.
- fix how we query dynamic foraging sessions in Streamlit to avoid further confusion. fix (docDB): fetching dynamic foraging sessions by software name foraging-behavior-browser#97
- see also Metadata errors to fix #510