Mercurial > repos > bgruening > sklearn_sample_generator
diff sample_generator.xml @ 15:c02c2bf137ab draft
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit f54ff2ba2f8e7542d68966ce5a6b17d7f624ac48
author | bgruening |
---|---|
date | Fri, 13 Jul 2018 03:54:29 -0400 |
parents | dec5e182fd0c |
children | 4ba68dd788b3 |
line wrap: on
line diff
--- a/sample_generator.xml Tue Jul 10 03:10:45 2018 -0400 +++ b/sample_generator.xml Fri Jul 13 03:54:29 2018 -0400 @@ -22,7 +22,8 @@ from sklearn import datasets input_json_path = sys.argv[1] -params = json.load(open(input_json_path, "r")) +with open(input_json_path, "r") as param_handler: + params = json.load(param_handler) my_function = getattr(datasets, params["sample_generators"]["selected_generator"]) options = params["sample_generators"]["options"]