From 6652951dd216c1147407ce3bcd82a104f4e0197e Mon Sep 17 00:00:00 2001 From: Surhud More Date: Mon, 15 Feb 2021 19:35:46 +0530 Subject: [PATCH] Adjust batchWallTime in case numCcds < numCores --- 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 d5bbe40..85ecf86 100644 --- a/python/lsst/pipe/drivers/constructCalibs.py +++ b/python/lsst/pipe/drivers/constructCalibs.py @@ -411,8 +411,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(numExps*numCcds/float(numCores) + 0.5) + return time*numCycles @classmethod def _makeArgumentParser(cls, *args, **kwargs):