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

fix parsing '_' snap name

parent d5b8de30
......@@ -140,7 +140,7 @@ class C2dplot:
if not self.__checkTimeExist(time,t_file): # time not computed yet
filename=uns_snap.unsin.getFileName()
basefile=os.path.basename(filename)
no=int(basefile.split("_")[1]) # compute no
no=int(basefile.split("_")[-1]) # compute no
out=my_dir+"/frame"
self.fullProcess(data.uns_snap,out=out,component=component,xrange=xrange,sigma=sigma,
cmap=cmap,mergers=mergers,center_cod=center_cod,cpt=no,noxz=noxz,contour=contour)
......
......@@ -85,7 +85,7 @@ class CMovie:
radius = radius*1.1 # add 10% more radius
filename=uns_snap.unsin.getFileName()
basefile=os.path.basename(filename)
no=int(basefile.split("_")[1]) # compute no
no=int(basefile.split("_")[-1]) # compute no
if prop=="age":
pixel=40
else:
......
Markdown is supported
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