Skip to content

Commit

Permalink
add line break
Browse files Browse the repository at this point in the history
  • Loading branch information
danlu1 committed May 1, 2024
1 parent 5ce1eeb commit b5d5039
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions genie_registry/clinical.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def _check_year_death_validity_message(
if len(invalid_year_death_indices) > 0:
error = (
"Patient Clinical File: Please double check your YEAR_DEATH and YEAR_CONTACT columns. "
"YEAR_DEATH must be >= YEAR_CONTACT. "
"YEAR_DEATH must be >= YEAR_CONTACT.\n"
)
return error, warning

Expand Down Expand Up @@ -268,7 +268,7 @@ def _check_int_dod_validity_message(
if len(invalid_int_dod_indices) > 0:
error = (
"Patient Clinical File: Please double check your INT_DOD and INT_CONTACT columns. "
"INT_DOD must be >= INT_CONTACT. "
"INT_DOD must be >= INT_CONTACT.\n"
)
return error, warning

Expand Down
8 changes: 4 additions & 4 deletions tests/test_clinical.py
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ def test_errors__validate(clin_class):
"column, it must be an integer in YYYY format <= {year} or "
"'Unknown', 'Not Collected', 'Not Released', '>89', '<18'.\n"
"Patient Clinical File: Please double check your YEAR_DEATH "
"and YEAR_CONTACT columns. YEAR_DEATH must be >= YEAR_CONTACT. "
"and YEAR_CONTACT columns. YEAR_DEATH must be >= YEAR_CONTACT.\n"
"Patient Clinical File: Please double check your INT_CONTACT "
"column, it must be an integer, '>32485', '<6570', 'Unknown', "
"'Not Released' or 'Not Collected'.\n"
Expand All @@ -725,7 +725,7 @@ def test_errors__validate(clin_class):
"it must be True, False, 'Unknown', "
"'Not Released' or 'Not Collected'.\n"
"Patient Clinical File: Please double check your INT_DOD "
"and INT_CONTACT columns. INT_DOD must be >= INT_CONTACT. "
"and INT_CONTACT columns. INT_DOD must be >= INT_CONTACT.\n"
"Patient: you have inconsistent redaction and text values in "
"YEAR_CONTACT, INT_CONTACT.\n"
"Patient: you have inconsistent redaction and text values in "
Expand Down Expand Up @@ -1142,7 +1142,7 @@ def test__check_year_death_validity(df, expected_indices):
(
pd.Index([2, 3]),
"Patient Clinical File: Please double check your YEAR_DEATH and YEAR_CONTACT columns. "
"YEAR_DEATH must be >= YEAR_CONTACT. "
"YEAR_DEATH must be >= YEAR_CONTACT.\n"
),
],
ids=[
Expand Down Expand Up @@ -1219,7 +1219,7 @@ def test__check_int_dod_validity(df, expected_indices):
(
pd.Index([2, 3]),
"Patient Clinical File: Please double check your INT_DOD and INT_CONTACT columns. "
"INT_DOD must be >= INT_CONTACT. "
"INT_DOD must be >= INT_CONTACT.\n"
),
],
ids=[
Expand Down

0 comments on commit b5d5039

Please sign in to comment.