Skip to content

Commit

Permalink
Updte sample_inputs to work as standalone (not imported library).
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidBrownlee committed Feb 19, 2024
1 parent 96d6249 commit c90eca0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion sample_inputs/new_cohort.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
## Additional mappings customised to my special cohort
import os
import sys
# Include src/ directory in the module search path.
current_dir = os.path.dirname(os.path.abspath(__file__))
parent_dir = os.path.dirname(current_dir)
sys.path.append(os.sep.join([parent_dir, "src"]))
import clinical_etl.mappings

## Additional mappings customised to my special cohort
def sex(data_value):
# make sure we only have one value
mapping_val = mappings.single_val(data_value)
Expand Down

0 comments on commit c90eca0

Please sign in to comment.