def ForSource(self, source):
    if not isinstance(source, Source):
      raise ValueError("Source must be a source object", type(source))
    return type(self)(self._metric, source)
Specialize this metric for a specific source.
dataset/ETHPy150Open steveniemitz/scales/scales/varz.py/VarzMetric.ForSource