From dcdc738ad5ae0db4b506c3e11130ab07038bba33 Mon Sep 17 00:00:00 2001 From: surhudm Date: Thu, 18 Jul 2019 10:53:54 +0530 Subject: [PATCH] Fix PBS walltime calculation in constructCalibs.py --- python/lsst/pipe/drivers/constructCalibs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/lsst/pipe/drivers/constructCalibs.py b/python/lsst/pipe/drivers/constructCalibs.py index d88e5c1..b7061f8 100644 --- a/python/lsst/pipe/drivers/constructCalibs.py +++ b/python/lsst/pipe/drivers/constructCalibs.py @@ -415,8 +415,8 @@ def batchWallTime(cls, time, parsedCmd, numCores): numCcds = len(parsedCmd.butler.get("camera")) numExps = len(cls.RunnerClass.getTargetList( parsedCmd)[0]['expRefList']) - numCycles = int(numCcds/float(numCores) + 0.5) - return time*numExps*numCycles + numCycles = int(numCcds*numExps/float(numCores) + 0.5) + return time*numCycles @classmethod def _makeArgumentParser(cls, *args, **kwargs):