We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7c8d0d commit e93fde1Copy full SHA for e93fde1
1 file changed
scripts/map_improve_drug_ids.py
@@ -9,7 +9,7 @@
9
from collections import defaultdict
10
11
##### Load, make structure, save functions for improve_drug_mapping.json
12
-def load_mapping(mapping_file='improve_drug_mapping.json'):
+def load_mapping(mapping_file='build/improve_drug_mapping.json'):
13
"""
14
Loads an existing improve_drug_mapping.json if available.
15
Otherwise returns an empty base structure with metadata and drugs.
@@ -25,8 +25,9 @@ def load_mapping(mapping_file='improve_drug_mapping.json'):
25
"drugs": []
26
}, False
27
28
-def save_mapping(mapping_data, mapping_file):
+def save_mapping(mapping_data):
29
"""Saves mapping data to disk as JSON."""
30
+ mapping_file='tmp/improve_drug_mapping.json'
31
with open(mapping_file, 'w') as f:
32
json.dump(mapping_data, f, indent=2)
33
0 commit comments