no need for int function

This commit is contained in:
P.M. Sutter 2014-06-03 23:40:39 -04:00
parent cadb9eea55
commit 42a934e0f1

View file

@ -186,7 +186,7 @@ def launchGenerate(sample, binPath, workDir=None, inputDataDir=None,
if not sample.shiftSimZ: reshiftFlag = "preReShift"
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
else:
ramsesIdLine = ""