PothosFlow icon indicating copy to clipboard operation
PothosFlow copied to clipboard

Passing complex numbers into block slot from PothosFlow

Open ncorgan opened this issue 4 years ago • 2 comments

Unless I'm missing something, there doesn't seem to be a way to pass complex values into slots from PothosFlow. NumericEntry only work for scalar floats, and LineEdit returns a std::string, which can't convert to a complex number.

Is there an existing method/workaround to pass in complex values from a graph widget? If we need to use a workaround, there should be support in a graph widget.

ncorgan avatar Mar 22 '20 14:03 ncorgan

there is this: https://github.com/pothosware/PothosWidgets/wiki#planar-selection

I think two numeric entries and the eval block could be used as well to format the complex number from components

guruofquality avatar Mar 22 '20 17:03 guruofquality

Without showing the graph widget, I'd think it's an odd name to appear on a PothosFlow display when the user just wants a complex number.

It looks like it works though.

ncorgan avatar Mar 23 '20 14:03 ncorgan