

def ForSource(self, source):
    'Specialize this metric for a specific source.\n\n    Args:\n      source - The source to specialize for.\n    Returns:\n      A VarzMetric of the same type.\n    '
    if (not isinstance(source, Source)):
        raise ValueError('Source must be a source object', type(source))
    return type(self)(self._metric, source)

dataset/ETHPy150Open steveniemitz/scales/scales/varz.py VarzMetric.ForSource/original