Skip to content

Commit e93fde1

Browse files
committed
testing
1 parent f7c8d0d commit e93fde1

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

scripts/map_improve_drug_ids.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from collections import defaultdict
1010

1111
##### Load, make structure, save functions for improve_drug_mapping.json
12-
def load_mapping(mapping_file='improve_drug_mapping.json'):
12+
def load_mapping(mapping_file='build/improve_drug_mapping.json'):
1313
"""
1414
Loads an existing improve_drug_mapping.json if available.
1515
Otherwise returns an empty base structure with metadata and drugs.
@@ -25,8 +25,9 @@ def load_mapping(mapping_file='improve_drug_mapping.json'):
2525
"drugs": []
2626
}, False
2727

28-
def save_mapping(mapping_data, mapping_file):
28+
def save_mapping(mapping_data):
2929
"""Saves mapping data to disk as JSON."""
30+
mapping_file='tmp/improve_drug_mapping.json'
3031
with open(mapping_file, 'w') as f:
3132
json.dump(mapping_data, f, indent=2)
3233

0 commit comments

Comments
 (0)