Hello.
Do the python node support complex numbers ?
I have the following error
ERROR PythonKernel C:\Program Files\KNIME\plugins\org.knime.python2_3.5.0.v201712011355\py\PythonKernel.py:686: ComplexWarning: Casting complex values to real discards the imaginary part
ERROR PythonKernel LookupError: No serializer extension having the id or processing python type "complex128" could be found.
ERROR Python Source 0:157 Execute failed: Connection reset
with the following example code in a python source node :
from pandas import DataFrame
column = [1+2j,2+4j]
output_table = DataFrame(column)
The code executes without issue in the code editor, but not in the workflow.
ImgLib2, the library backing ImageJ and the KNIME Image Processing extension, has a ComplexType, so if you’re working with images (and Fourier transform etc.) you could possibly hand over ImgPlus objects which are a supported column type in KNIME. I’ve not tried it, though…