Пример #1
0
 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
Пример #2
0
 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
Пример #3
0
 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
Пример #4
0
 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