def fillParameterInfo(self, pNum, result): if 'WALLTIME' in result: result[ParameterInfo.REQS].append((WMS.WALLTIME, parseTime(result.pop('WALLTIME')))) if 'CPUTIME' in result: result[ParameterInfo.REQS].append((WMS.CPUTIME, parseTime(result.pop('CPUTIME')))) if 'MEMORY' in result: result[ParameterInfo.REQS].append((WMS.MEMORY, int(result.pop('MEMORY'))))
def fillParameterInfo(self, pNum, result): if 'WALLTIME' in result: result[ParameterInfo.REQS].append( (WMS.WALLTIME, parseTime(result.pop('WALLTIME')))) if 'CPUTIME' in result: result[ParameterInfo.REQS].append( (WMS.CPUTIME, parseTime(result.pop('CPUTIME')))) if 'MEMORY' in result: result[ParameterInfo.REQS].append( (WMS.MEMORY, int(result.pop('MEMORY'))))
def str2obj(value): try: return parseTime( value) # empty or negative values are mapped to -1 except Exception: raise ConfigError( 'Valid time expressions have the format: hh[:mm[:ss]]')
def __init__(self, arg, **kwargs): self.time_threshold = parseTime(arg)
def str2obj(value): try: return parseTime(value) # empty or negative values are mapped to -1 except Exception: raise ConfigError('Valid time expressions have the format: hh[:mm[:ss]]')
def __init__(self, arg, **kwargs): self._time_threshold = parseTime(arg)