comparison 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
comparison
equal deleted inserted replaced
14:d2af04c7d1c0 15:c02c2bf137ab
20 import pandas 20 import pandas
21 import numpy as np 21 import numpy as np
22 from sklearn import datasets 22 from sklearn import datasets
23 23
24 input_json_path = sys.argv[1] 24 input_json_path = sys.argv[1]
25 params = json.load(open(input_json_path, "r")) 25 with open(input_json_path, "r") as param_handler:
26 params = json.load(param_handler)
26 27
27 my_function = getattr(datasets, params["sample_generators"]["selected_generator"]) 28 my_function = getattr(datasets, params["sample_generators"]["selected_generator"])
28 options = params["sample_generators"]["options"] 29 options = params["sample_generators"]["options"]
29 my_points, my_targets = my_function(**options) 30 my_points, my_targets = my_function(**options)
30 31