Previous changeset 3:c29275496061 (2020-07-14) Next changeset 5:48a42ca61006 (2021-08-03) |
Commit message:
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_dada2 commit 02d2967f77e3fa5a18aea63dc84aa9ab418dc165" |
modified:
data_manager/data_manager.py |
b |
diff -r c29275496061 -r 38ccd4589990 data_manager/data_manager.py --- a/data_manager/data_manager.py Tue Jul 14 07:37:09 2020 -0400 +++ b/data_manager/data_manager.py Sun Nov 22 12:47:30 2020 +0000 |
[ |
@@ -100,8 +100,8 @@ def remote_dataset(dataset, outjson): - with open(outjson) as jf: - params = json.loads(jf.read()) + with open(outjson) as fh: + params = json.load(fh) workdir = params['output_data'][0]['extra_files_path'] os.mkdir(workdir) @@ -123,8 +123,8 @@ data_manager_entry['path'] = dataset + ".species" data_manager_json["data_tables"]["dada2_species"] = data_manager_entry - with open(outjson, 'w') as jf: - jf.write(json.dumps(data_manager_json, sort_keys=True)) + with open(outjson, 'w') as fh: + json.dump(data_manager_json, fh, sort_keys=True) if __name__ == '__main__': |