def interpolate_at(self, x): if self.measurement_format != Measurement.Format.SCALAR: raise ValueError("Can only interpolate scalar values") from main.utilities import interpolate_at return interpolate_at(self.valid_data(), x)
def interpolate_at(self, x): assert (self.measurement_format == Measurement.Format.SCALAR) from main.utilities import interpolate_at return interpolate_at(self.valid_data(), x)