Skip to content

Commit

Permalink
data-pipeline: fix typo in clean script (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie-XIAO authored Nov 16, 2024
1 parent 3d20e82 commit 42c6a72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/data-pipeline/clean.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"enrollment_count", # int
"allocation", # str
"intervention_model", # str
"observation_model", # str
"observational_model", # str
"primary_purpose", # str
"who_masked", # str
# Inverventions module
Expand Down Expand Up @@ -197,7 +197,7 @@ def clean_one_study(study):
)
cleaned_data["allocation"] = design_info.get("allocation")
cleaned_data["intervention_model"] = design_info.get("interventionModel")
cleaned_data["observation_model"] = design_info.get("observationalModel")
cleaned_data["observational_model"] = design_info.get("observationalModel")
cleaned_data["primary_purpose"] = design_info.get("primaryPurpose")
cleaned_data["who_masked"] = (
", ".join(design_info.get("maskingInfo", {}).get("whoMasked", [])) or None
Expand Down

0 comments on commit 42c6a72

Please sign in to comment.