mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 15:21:11 +00:00
no need for int function
This commit is contained in:
parent
cadb9eea55
commit
42a934e0f1
1 changed files with 1 additions and 1 deletions
|
@ -186,7 +186,7 @@ def launchGenerate(sample, binPath, workDir=None, inputDataDir=None,
|
||||||
if not sample.shiftSimZ: reshiftFlag = "preReShift"
|
if not sample.shiftSimZ: reshiftFlag = "preReShift"
|
||||||
|
|
||||||
if sample.dataFormat == "ramses":
|
if sample.dataFormat == "ramses":
|
||||||
ramsesId = int((os.path.split(datafile)[1])[5:10]) # picks out the particle file (should be the part_NNNNN.outXXXXX, then extracts the output id "NNNNN" as an integer)
|
ramsesId = (os.path.split(datafile)[1])[5:10] # picks out the particle file (should be the part_NNNNN.outXXXXX, then extracts the output id "NNNNN" as an integer)
|
||||||
ramsesIdLine = "ramsesId " + ramsesId
|
ramsesIdLine = "ramsesId " + ramsesId
|
||||||
else:
|
else:
|
||||||
ramsesIdLine = ""
|
ramsesIdLine = ""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue