[BUG] Data dictionary model allows for a continuous BIDS column to have categorical Neurobagel annotations #152
Labels
_flag:stale
[BOT ONLY] Flag issue that hasn't been updated in a while and needs to be triaged again
Is there an existing issue for this?
Expected Behavior
is a valid data dictionary entry for a categorical column under our current data model for data dictionaries.
However, notice that this example does not have a
"Levels"
attribute in the BIDS part (i.e. outside of our"Annotations"
key).Here is what I believe happens:
Column
type validates ascontinuous because there are no required attributes for continuous columns except
"Description"and
"Annotation"`bagel-cli/bagel/dictionary_models.py
Lines 94 to 102 in dd54f14
(that might be its own issue)
"Annotations"
key gets validates asCategoricalNeurobagel
because it has thelevels
stuffbagel-cli/bagel/dictionary_models.py
Lines 44 to 53 in dd54f14
ContinousNeurobagel
ORCategoricalNeurobagel
, this is all valid:bagel-cli/bagel/dictionary_models.py
Lines 77 to 79 in dd54f14
I think we have a couple of options here:
description
from theColumn
class (probably the cleanest)Current Behavior
No response
Error message
No response
Environment
How to reproduce
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: