Commit 7461184c authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Investigates duratio of first sample of each pulse

Showing with 3 additions and 1 deletion
+3 -1
...@@ -155,12 +155,14 @@ class OhmPiHardware: ...@@ -155,12 +155,14 @@ class OhmPiHardware:
pulses.update({i: {'polarity': int(r[0, 2]), 'iab': r[:, 3], 'vmn': r[:, 4]}}) pulses.update({i: {'polarity': int(r[0, 2]), 'iab': r[:, 3], 'vmn': r[:, 4]}})
return pulses return pulses
def _read_values(self, sampling_rate, append=False): # noqa def _read_values(self, sampling_rate=None, append=False): # noqa
if not append: if not append:
self._clear_values() self._clear_values()
_readings = [] _readings = []
else: else:
_readings = self.readings.tolist() _readings = self.readings.tolist()
if sampling_rate is None:
sampling_rate = self.tx.sampling_rate
sample = 0 sample = 0
self.tx_sync.wait() # self.tx_sync.wait() #
if not append or self._start_time is None: if not append or self._start_time is None:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment