knime-mpicbg / knime-scripting

knime-scripting includes scripting extensions for KNIME to integrate R, Matlab, Python and Groovy scripts. These extensions include a collection of nodes to develop and deploy templates in the respective languages.
https://github.com/knime-mpicbg/knime-scripting/wiki
Other
43 stars 25 forks source link

Support additional data types in scripting nodes #12

Open niederle opened 10 years ago

niederle commented 10 years ago

Requested by George Papadatos (Lilly UK):

... another thing that can be sometime annoying: the python snippet node throws an error when the input KNIME table contains cell types other than the usual string, int or double, such as molecule or bitvector types. I guess this is because in the python code there is a function that tries to figure out the column type. Would it be possible to work around this problem?

fmeyenhofer commented 10 years ago

There certainly is. The python script, which loads the data would need to be adapted. But the data-transfer between KNIME and Python is realised with a csv-file, hence, anything that can not be encoded as a string is beyond the scope of this method. In the later case we would need to figure out another file type , maybe HDF5?