Repository 'data_manager_cat'
hg clone https://toolshed.g2.bx.psu.edu/repos/iuc/data_manager_cat

Changeset 1:74af283d8ebd (2020-11-22)
Previous changeset 0:cffd8e2382cf (2019-12-09) Next changeset 2:472dabcb03bf (2023-12-18)
Commit message:
"planemo upload commit 02d2967f77e3fa5a18aea63dc84aa9ab418dc165"
modified:
data_manager/data_manager_cat.py
b
diff -r cffd8e2382cf -r 74af283d8ebd data_manager/data_manager_cat.py
--- a/data_manager/data_manager_cat.py Mon Dec 09 10:28:15 2019 -0500
+++ b/data_manager/data_manager_cat.py Sun Nov 22 12:47:10 2020 +0000
[
@@ -89,7 +89,7 @@
             url_download(args.db_url, args.install_path)
         else:
             cat_prepare(args.install_path)
-        for root, dirs, files in os.walk(args.install_path):
+        for root, dirs, _ in os.walk(args.install_path):
             for dname in dirs:
                 if dname.endswith('CAT_database'):
                     cat_db = dname
@@ -109,7 +109,8 @@
                             taxonomy_folder=os.path.join(cat_dir, tax_db))
     dm_dict['data_tables'][data_table].append(data_table_entry)
     # save info to json file
-    open(args.config_file, 'w').write(json.dumps(dm_dict))
+    with open(args.config_file, 'w') as fh:
+        json.dump(dm_dict, fh, sort_keys=True)
 
 
 if __name__ == "__main__":