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

Show two trajectories? #9

Closed
hainm opened this issue Dec 11, 2015 · 6 comments
Closed

Show two trajectories? #9

hainm opened this issue Dec 11, 2015 · 6 comments

Comments

@hainm
Copy link
Collaborator

hainm commented Dec 11, 2015

Any idea how I can do this? Thx.

@arose
Copy link
Collaborator

arose commented Dec 11, 2015

do you mean in the same widget? Using the same topology?

@hainm
Copy link
Collaborator Author

hainm commented Dec 11, 2015

Yes. Same widget but not necessary same topology.

@arose
Copy link
Collaborator

arose commented Dec 11, 2015

Currently the widget can only handle one topology and one trajectory. The NGL Viewer itself can handle more but that is not implemented on the Python side. Shortly: There needs to be some sort of Python equivalent to the stage and the structure/representation component objects on the JS side.

@hainm
Copy link
Collaborator Author

hainm commented Dec 11, 2015

ok. I will look into stage.

@hainm
Copy link
Collaborator Author

hainm commented Mar 5, 2016

proposed syntax in python

stage = nv.Stage(...)
view0 = nv.show_pytraj(...)
view1 = nv.show_pytraj(...)
stage.add(view0)
stage.add(view1)

@hainm
Copy link
Collaborator Author

hainm commented May 14, 2016

done

@hainm hainm closed this as completed May 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants