diff --git a/hardware_system.py b/hardware_system.py index 431d1cdde1f95f6367632dcbb52427a278790ab2..6cecf5bf987a2e4bad001c8c85d3bf5b333a690c 100644 --- a/hardware_system.py +++ b/hardware_system.py @@ -181,7 +181,7 @@ class OhmPiHardware: self.tx.polarity = 1 self.tx.turn_on() if self.rx.sampling_rate*1000 > best_tx_injtime: - sampling_rate = best_tx_injtime + sampling_rate = best_tx_injtime # TODO: check this... else: sampling_rate = self.tx.sampling_rate self._vab_pulse(vab=vab, length=best_tx_injtime, sampling_rate=sampling_rate) diff --git a/ohmpi.py b/ohmpi.py index d4d5e18d4d958fd7c29e249d3d3cb71e03fdb230..c588508cccf09178f1ac18e1b99009e69ecdae5e 100644 --- a/ohmpi.py +++ b/ohmpi.py @@ -420,7 +420,7 @@ class OhmPi(object): Quadrupole to measure, just for labelling. Only switch_mux_on/off really create the route to the electrodes. nb_stack : int, optional - Number of stacks. A stack is considered two half-cycles (one + Number of stacks. A stack is considered two pulses (one positive, one negative). injection_duration : int, optional Injection time in seconds. @@ -502,7 +502,7 @@ class OhmPi(object): self.switch_mux_off(quad, cmd_id) return d - def run_multiple_sequences(self, cmd_id=None, sequence_delay=None, nb_meas=None, **kwargs): + def run_multiple_sequences(self, cmd_id=None, sequence_delay=None, nb_meas=None, **kwargs): # NOTE : could be renamed repeat_sequence """Runs multiple sequences in a separate thread for monitoring mode. Can be stopped by 'OhmPi.interrupt()'. Additional arguments are passed to run_measurement().