git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@5320 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -1,13 +1,20 @@
|
|||||||
|
# Pizza.py toolkit, www.cs.sandia.gov/~sjplimp/pizza.html
|
||||||
|
# Steve Plimpton, sjplimp@sandia.gov, Sandia National Laboratories
|
||||||
#
|
#
|
||||||
# Minimalistic VMD embedding for Pizza.py
|
# Copyright (2005) Sandia Corporation. Under the terms of Contract
|
||||||
#
|
# DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains
|
||||||
# This class will replace the VMD startup script,
|
# certain rights in this software. This software is distributed under
|
||||||
# open a pipe to the executable, and feed it Tcl
|
# the GNU General Public License.
|
||||||
# command lines one at a time.
|
|
||||||
#
|
|
||||||
# (c) 2010 Axel Kohlmeyer <akohlmey@gmail.com>
|
|
||||||
|
|
||||||
oneline = "Control VMD from python."
|
# vmd tool
|
||||||
|
|
||||||
|
# Minimalistic VMD embedding for Pizza.py
|
||||||
|
# (c) 2010 Axel Kohlmeyer <akohlmey@gmail.com>
|
||||||
|
# This class will replace the VMD startup script,
|
||||||
|
# open a pipe to the executable,
|
||||||
|
# and feed it Tcl command lines one at a time
|
||||||
|
|
||||||
|
oneline = "Control VMD from python"
|
||||||
|
|
||||||
docstr = """
|
docstr = """
|
||||||
v = vmd() start up VMD
|
v = vmd() start up VMD
|
||||||
@ -30,6 +37,9 @@ v.enter() enter interactive shell
|
|||||||
v.debug([True|False]) display generated VMD script commands?
|
v.debug([True|False]) display generated VMD script commands?
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
# History
|
||||||
|
# 11/10, Axel Kohlmeyer (Temple U): original version
|
||||||
|
|
||||||
# Imports and external programs
|
# Imports and external programs
|
||||||
|
|
||||||
import types, os
|
import types, os
|
||||||
@ -46,8 +56,10 @@ except: PIZZA_VMDARCH = "LINUX"
|
|||||||
|
|
||||||
try: import pexpect
|
try: import pexpect
|
||||||
except:
|
except:
|
||||||
print "pexpect from http://pypi.python.org/pypi/pexpect/ is required for vmd module"
|
print "pexpect from http://pypi.python.org/pypi/pexpect", \
|
||||||
|
"is required for vmd tool"
|
||||||
raise
|
raise
|
||||||
|
|
||||||
# Class definition
|
# Class definition
|
||||||
|
|
||||||
class vmd:
|
class vmd:
|
||||||
|
|||||||
Reference in New Issue
Block a user