def run(self, reset=True, printProgress=PRINT_PROGRESS): if reset: MagicStatFactory.resetMemoDict() results = self._emptyResults() try: self._checkNumUserBinsIsValid() except Exception, e: results.addError(e) return results
def isStatisticInChildren(cls, job, statisticName): for region in job._userBinSource: stat = job._statClass(region, job._track, job._track2, *job._args, **job._kwArgs) break stat.createChildren() result = cls.searchForStatisticRecursively(stat, statisticName) MagicStatFactory.resetMemoDict() return result