diff pre_process.xml @ 24:9e43ee712723 draft

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
author bgruening
date Tue, 14 May 2019 18:19:35 -0400
parents d6b8103c909c
children 685046e0381a
line wrap: on
line diff
--- a/pre_process.xml	Sun Dec 30 01:58:00 2018 -0500
+++ b/pre_process.xml	Tue May 14 18:19:35 2019 -0400
@@ -23,7 +23,8 @@
 from scipy.io import mmwrite
 from sklearn import preprocessing
 
-exec(open("$__tool_directory__/utils.py").read(), globals())
+sys.path.insert(0, '$__tool_directory__')
+from utils import read_columns
 
 input_json_path = sys.argv[1]
 with open(input_json_path, "r") as param_handler:
@@ -47,8 +48,7 @@
         parse_dates=True,
         encoding=None,
         index_col=None,
-        tupleize_cols=False
-)
+        tupleize_cols=False).astype(float)
 #end if
 
 preprocessor = params["input_type"]["pre_processors"]["selected_pre_processor"]