def _resample_with_constant_dx(x_data, y_data): f = _interp1d(x_data, y_data) x = _linspace(x_data[0], x_data[-1], len(x_data)) y = f(x) return x, y
def attenuator(self, value): assert value in _linspace(0, 31.5, 64) self.valonDevice.sendCommand('s%d; att %s' % (self.sourceNumber, value)) self._attenuator = self.attenuator
def AMDepth(self, value): assert value in _linspace(0, 31.5, 64) self.valonDevice.sendCommand('s%d; AMD %s' % (self.sourceNumber, value)) self._AMDepth = self.AMDepth