Skip to content

Commit ee58b10

Browse files
authored
updated the data type of meds_to_cehrbert_conversion_type in the dataclass field definition (#112)
1 parent eb73b88 commit ee58b10

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/cehrbert/runners/hf_runner_argument_dataclass.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,10 @@ class DataTrainingArguments:
117117
# TODO: Python 3.9/10 do not support dynamic unpacking, we have to manually provide the entire
118118
# list right now.
119119
meds_to_cehrbert_conversion_type: Literal[
120-
MedsToCehrBertConversionType[MedsToBertMimic4.__name__],
121-
MedsToCehrBertConversionType[MedsToCehrbertOMOP.__name__],
120+
MedsToBertMimic4.__name__,
121+
MedsToCehrbertOMOP.__name__,
122122
] = dataclasses.field(
123-
default=MedsToCehrBertConversionType[MedsToBertMimic4.__name__],
123+
default=MedsToCehrbertOMOP.__name__,
124124
metadata={
125125
"help": "The MEDS to CEHRBERT conversion type e.g. MedsToBertMimic4",
126126
"choices": f"choices={[e for e in MedsToCehrBertConversionType.__members__]}",

tests/integration_tests/runners/hf_cehrbert_pretrain_runner_meds_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def setUp(self):
5858
"--meds_exclude_tables",
5959
"condition",
6060
"--meds_to_cehrbert_conversion_type",
61-
"MedsToCehrBertConversionType.MedsToCehrbertOMOP",
61+
"MedsToCehrbertOMOP",
6262
]
6363

6464
def tearDown(self):

0 commit comments

Comments
 (0)