Skip to content

Commit

Permalink
remind about missing values in age parsing error
Browse files Browse the repository at this point in the history
  • Loading branch information
alyssadai committed Dec 4, 2024
1 parent 8578e4c commit fbd47ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bagel/utilities/pheno_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ def transform_age(value: str, heuristic: str) -> float:
except (ValueError, isodate.isoerror.ISO8601Error) as e:
raise ValueError(
f"There was a problem with applying the age transformation: {heuristic}. "
"Check that the specified transformation is correct for the age values in your data dictionary."
"Check that the transformation specified in the data dictionary is correct for the age values in your phenotypic file, "
"and that you correctly annotated any missing values in your age column."
) from e
if not is_recognized_heuristic:
raise ValueError(
Expand Down

0 comments on commit fbd47ce

Please sign in to comment.