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

Enable all KNIME Cell Types as long as they are compatible to StringCell #24

Closed damoser closed 8 years ago

damoser commented 10 years ago

Many KNIME cell types are compatible to StringCell.TYPE (e.g. all molecular cells (SDF, SMILES,...)). The current version of the python scripting extensions however insists that a cell type is >equal< to StringCell.TYPE. Therefore I changed the check of the cell type to include a case where the cell type is compatible to the StringCell value class.) I didn't want to break the code in Attribute.java, therefore I'm using getRawValue() instead of getNominalAttribute() to retrieve the cell's value.

damoser commented 10 years ago

Related to #12 I think.