Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing complex numbers into block slot from PothosFlow #192

Open
ncorgan opened this issue Mar 22, 2020 · 2 comments
Open

Passing complex numbers into block slot from PothosFlow #192

ncorgan opened this issue Mar 22, 2020 · 2 comments

Comments

@ncorgan
Copy link
Member

ncorgan commented Mar 22, 2020

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.

@guruofquality
Copy link
Contributor

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

@ncorgan
Copy link
Member Author

ncorgan commented Mar 23, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants