Commit 2ca5dafa authored by LAMBERT Jean-charles's avatar LAMBERT Jean-charles
Browse files

2dplot in progress

parent c8f46758
......@@ -41,13 +41,15 @@ def commandLine():
# process, is the core function
def process(args):
try:
cpt=0
uns=CSnapshot(args.snapshot,args.component,verbose_debug=args.verbose)
ok=uns.nextFrame("")
if ok:
#ok=uns.nextFrame("")
while(uns.nextFrame("")):
c=C2dplot(verbose_debug=args.verbose)
c.fullProcess(uns=uns,out=args.out,component=args.component,xrange=int(args.range),sigma=args.sigma, mergers=args.mergers,cmap=args.cmap)
else:
print ("[%s] is not a UNS snapshot ..."%(simname))
c.fullProcess(uns=uns,out=args.out,component=args.component,xrange=int(args.range),sigma=args.sigma, mergers=args.mergers,cmap=args.cmap,cpt=cpt)
cpt =cpt+1
# else:
# print ("[%s] is not a UNS snapshot ..."%(simname))
except Exception as x :
print (x.message,file=sys.stderr)
except KeyboardInterrupt:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment