mirror of
https://github.com/ParticulateFlow/LPP.git
synced 2025-12-08 06:37:46 +00:00
convert tabs to spaces, remove extra spaces, fix comments
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
# simple test of data tool
|
# simple test of data tool
|
||||||
# requires files/data.micelle
|
# requires files/data.micelle and dump.micelle
|
||||||
# creates tmp.data
|
# creates tmp.data
|
||||||
|
|
||||||
d = data("files/data.micelle")
|
d = data("files/data.micelle")
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
# simple test of vcr tool
|
# simple test of vcr tool
|
||||||
# requires files/bucky*png files
|
|
||||||
|
|
||||||
d = dump("files/dump.micelle")
|
d = dump("files/dump.micelle")
|
||||||
dt = data("files/data.micelle")
|
dt = data("files/data.micelle")
|
||||||
|
|||||||
@ -800,8 +800,6 @@ class cdata:
|
|||||||
# bracket pt = xyz +/- scale*dir
|
# bracket pt = xyz +/- scale*dir
|
||||||
# multiply scale by factor each iteration
|
# multiply scale by factor each iteration
|
||||||
|
|
||||||
#print "AAA",i,start,stop,x,y,z,dir
|
|
||||||
|
|
||||||
scale = EPS
|
scale = EPS
|
||||||
bracket = start
|
bracket = start
|
||||||
while scale < maxscale:
|
while scale < maxscale:
|
||||||
@ -1166,7 +1164,7 @@ class cdata:
|
|||||||
return 0,0,-1
|
return 0,0,-1
|
||||||
|
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
# return list of atoms and triangles to viz for cdata object
|
# return list of atoms and triangles and lines to viz for cdata object
|
||||||
|
|
||||||
def viz(self,isnap):
|
def viz(self,isnap):
|
||||||
if isnap:
|
if isnap:
|
||||||
|
|||||||
@ -225,8 +225,8 @@ class data:
|
|||||||
if dm.scaled(nsnap): scaleflag = 1
|
if dm.scaled(nsnap): scaleflag = 1
|
||||||
else: scaleflag = 0
|
else: scaleflag = 0
|
||||||
dm.sort(ntime)
|
dm.sort(ntime)
|
||||||
|
|
||||||
if scaleflag: dm.unscale(ntime)
|
if scaleflag: dm.unscale(ntime)
|
||||||
|
|
||||||
x,y,z = dm.vecs(ntime,"x","y","z")
|
x,y,z = dm.vecs(ntime,"x","y","z")
|
||||||
if scaleflag: dm.scale(ntime)
|
if scaleflag: dm.scale(ntime)
|
||||||
|
|
||||||
|
|||||||
@ -61,7 +61,7 @@ d.write("file",head,app) write selected steps/atoms to dump file
|
|||||||
d.scatter("tmp") write selected steps/atoms to multiple files
|
d.scatter("tmp") write selected steps/atoms to multiple files
|
||||||
|
|
||||||
write() can be specified with 2 additional flags
|
write() can be specified with 2 additional flags
|
||||||
headd = 0/1 for no/yes snapshot header, app = 0/1 for write vs append
|
head = 0/1 for no/yes snapshot header, app = 0/1 for write vs append
|
||||||
scatter() files are given timestep suffix: e.g. tmp.0, tmp.100, etc
|
scatter() files are given timestep suffix: e.g. tmp.0, tmp.100, etc
|
||||||
|
|
||||||
d.scale() scale x,y,z to 0-1 for all timesteps
|
d.scale() scale x,y,z to 0-1 for all timesteps
|
||||||
|
|||||||
@ -295,8 +295,8 @@ class tdump:
|
|||||||
corner3y = self.names["corner3y"]
|
corner3y = self.names["corner3y"]
|
||||||
corner3z = self.names["corner3z"]
|
corner3z = self.names["corner3z"]
|
||||||
|
|
||||||
# create line list from id,type,corner1x,...corner3z
|
# create tris list from id,type,corner1x,...corner3z
|
||||||
# don't add line if all 4 values are 0 since not a line
|
# don't add tri if all 4 values are 0 since not a line
|
||||||
|
|
||||||
tris = []
|
tris = []
|
||||||
for i in xrange(snap.natoms):
|
for i in xrange(snap.natoms):
|
||||||
|
|||||||
Reference in New Issue
Block a user