def keys(self, times, values, interpolation=Linear):
    times = map((lambda t: om.MTime(t, TimeUnit)), times)
    try:
        self._fna.addKeys(times, values)
    except RuntimeError:
        if (not times):
            log.error(('No times were provided: %s' % str(times)))
        if (not values):
            log.error(('No values were provided: %s' % str(values)))
        if (len(values) != len(times)):
            log.error(('Count mismatch; len(times)=%d, len(values)=%d' % (len(times), len(values))))
        raise
def keys(self, times, values, interpolation=Linear):
    times = map((lambda t: om.MTime(t, TimeUnit)), times)
    try:
        self._fna.addKeys(times, values)
    except RuntimeError:
        if (not times):
            log.error(('No times were provided: %s' % str(times)))
        if (not values):
            log.error(('No values were provided: %s' % str(values)))
        if (len(values) != len(times)):
            log.error(('Count mismatch; len(times)=%d, len(values)=%d' % (len(times), len(values))))
        raise