Mercurial > repos > iuc > data_manager_vsnp_dnaprints
changeset 1:05693c942b1a draft default tip
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_vsnp_dnaprints commit 02d2967f77e3fa5a18aea63dc84aa9ab418dc165"
author | iuc |
---|---|
date | Sun, 22 Nov 2020 12:54:59 +0000 |
parents | 19c6d9c66c75 |
children | |
files | data_manager/vsnp_dnaprints_fetcher.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/data_manager/vsnp_dnaprints_fetcher.py Fri May 08 15:25:21 2020 -0400 +++ b/data_manager/vsnp_dnaprints_fetcher.py Sun Nov 22 12:54:59 2020 +0000 @@ -35,7 +35,7 @@ def download(dbkey, name, url, out_file): with open(out_file) as fh: - params = json.loads(fh.read()) + params = json.load(fh) workdir = params['output_data'][0]['extra_files_path'] os.makedirs(workdir) @@ -51,7 +51,7 @@ data_manager_json["data_tables"]["vsnp_dnaprints"] = data_manager_entry with open(out_file, 'w') as fh: - fh.write(json.dumps(data_manager_json, sort_keys=True)) + json.dump(data_manager_json, fh, sort_keys=True) parser = argparse.ArgumentParser()