File: gb_example_view_trajectory.py

package info (click to toggle)
openstructure 2.11.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 206,256 kB
  • sloc: cpp: 188,571; python: 36,686; ansic: 34,298; fortran: 3,275; sh: 312; xml: 146; makefile: 29
file content (16 lines) | stat: -rw-r--r-- 407 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from ost.gui import trajectory_viewer

"""
MM - Demo

!!!Requires OpenStructure to be compiled with MM-Support!!!

This demo demonstrates how to actually look at the trajectory created
in the gb_example_writing_trajectory.py script.
"""

t = io.LoadCHARMMTraj("gb_example_traj.pdb","gb_example_traj.dcd")
go = gfx.Entity("gb",t.GetEntity())
scene.Add(go)
w = trajectory_viewer.TrajWidget([t],[go])
w.show()