You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into a problem with the VLMD tool recently: some fields in the input REDCap file didn't have a "Choices, Calculations, OR Slider Labels" value (because they had been redacted). This resulted in an exception being thrown by the _parse_field_properties_from_encodings() method called from mapradio():
To help figure out where the error in the input was, it would be helpful if this exception was caught so that the field name was reported, or even a check for the most common error case (an empty field):
ifnotencodings_string:
raiseValueError(f"Empty encodings string not allowed in radio field {field} with column {choices_fieldname}.")
(The same is also true of dropdown fields, see below.)
I ran into a problem with the VLMD tool recently: some fields in the input REDCap file didn't have a "Choices, Calculations, OR Slider Labels" value (because they had been redacted). This resulted in an exception being thrown by the
_parse_field_properties_from_encodings()
method called frommapradio()
:healdata-utils/src/healdata_utils/transforms/redcapcsv/mappings.py
Lines 146 to 155 in 5080227
To help figure out where the error in the input was, it would be helpful if this exception was caught so that the field name was reported, or even a check for the most common error case (an empty field):
(The same is also true of dropdown fields, see below.)
healdata-utils/src/healdata_utils/transforms/redcapcsv/mappings.py
Lines 136 to 144 in 5080227
The text was updated successfully, but these errors were encountered: