@staticmethod
def evaluate_resource_requests(time, mem):
    """ Evaluate the time/memory requests for the grid job, allowing for ints or formulas """
    try:
        time = eval(str(time))
    except TypeError:
        raise TypeError('Unable to evaluate time request for task: ' + time)
    try:
        mem = eval(str(mem))
    except TypeError:
        raise TypeError('Unable to evaluate memory request for task: ' + mem)
    return time, mem
