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

Expose stream commands #49

Open
justinlaughlin opened this issue Aug 29, 2024 · 3 comments
Open

Expose stream commands #49

justinlaughlin opened this issue Aug 29, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@justinlaughlin
Copy link
Contributor

As far as I'm aware, only "keys" can be sent through PyGLVis but not "stream commands". Adding in some API calls for this (may require work in glvis-js) would make pyglvis much more customizable.

@justinlaughlin justinlaughlin added the enhancement New feature or request label Aug 29, 2024
@tzanio
Copy link
Member

tzanio commented Aug 30, 2024

You should be able to add other commands besides keys in the stream.

For example the MFEM logo stream has valuerange -3 2 at the end.

So in PyGLVis you should be able to e.g. say glvis(to_stream(mesh,x) + 'valuerange -3 2').

Does this not work?

@justinlaughlin
Copy link
Contributor Author

Unfortunately, valuerange is the only other command that works - glvis-js has different machinery for handling the stream (glvis/lib/aux_js.cpp/display). In particular, see these lines. As an example, you can add zoom 50 at the end of a .saved file and open it with glvis vs glvis-js.

In hindsight, this probably should be an issue under glvis, since aux_js.cpp is what needs to change.

@tzanio
Copy link
Member

tzanio commented Aug 30, 2024

Oh, I see now. You are correct

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

No branches or pull requests

2 participants