Files
LPP/examples/test_pair.py
danielque 539fd060c2 python 3 compatibility for examples/*.py files
add from __future__ import
print statement -> print() function
xrange -> range
map() -> list(map())
range() -> list(range())
StandardError -> Exception
2023-08-10 13:25:36 +02:00

12 lines
258 B
Python

# simple test of pair tool
# requires files/data.rhodo
p = pair("lj/charmm/coul/charmm")
d = data("files/data.rhodo")
p.coeff(d)
p.init(8.0,10.0)
ev,ec = p.single(5.0,1,2,0.5,-0.5)
print("Energies",ev,ec)
print("all done ... type CTRL-D to exit Pizza.py")