summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHui Lan <lanhui@zjnu.edu.cn>2021-02-10 14:27:21 +0800
committerHui Lan <lanhui@zjnu.edu.cn>2021-02-10 14:27:21 +0800
commitf9baea0a3bf8adcf2066b1639bb41477fc053538 (patch)
treebd85923bd42ab7c885452eb05a5b29603851cb32
parent823db708ed6b37a44a970d5f5a3e9c765aa83c16 (diff)
download_and_map.py: simplify function read_ena_data_info_json such that it includes all info.
-rw-r--r--Code/download_and_map.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/Code/download_and_map.py b/Code/download_and_map.py
index f23e241..7cbc064 100644
--- a/Code/download_and_map.py
+++ b/Code/download_and_map.py
@@ -325,12 +325,9 @@ def read_ena_data_info(fname):
def read_ena_data_info_json(fname):
- d = {}
with open(fname) as json_data:
json_dict = json.load(json_data)
- for run_id in json_dict:
- d[run_id] = 1
- return d
+ return json_dict
def read_run_ids_from_file(fname):