changeset 5:1550b1741780 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_plant_tribes_scaffolds_downloader commit 02d2967f77e3fa5a18aea63dc84aa9ab418dc165"
author iuc
date Sun, 22 Nov 2020 12:52:36 +0000
parents 93253aebaf2e
children 898b956719ee
files data_manager/data_manager_plant_tribes_scaffolds_download.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/data_manager/data_manager_plant_tribes_scaffolds_download.py	Fri Jul 17 04:19:35 2020 -0400
+++ b/data_manager/data_manager_plant_tribes_scaffolds_download.py	Sun Nov 22 12:52:36 2020 +0000
@@ -115,7 +115,7 @@
 args = parser.parse_args()
 
 with open(args.out_file) as fh:
-    params = json.loads(fh.read())
+    params = json.load(fh)
 target_directory = params['output_data'][0]['extra_files_path']
 make_directory(target_directory)
 
@@ -128,4 +128,4 @@
 data_manager_dict = download(target_directory, args.web_url, args.config_web_url, description)
 # Write the JSON output dataset.
 with open(args.out_file, 'w') as fh:
-    fh.write(json.dumps(data_manager_dict, sort_keys=True))
+    json.dump(data_manager_dict, fh, sort_keys=True)