From bcef97352287fdec4ab5a2f41d6ac96c2f87f39d Mon Sep 17 00:00:00 2001 From: Arnaud Watlet <arnaud.watlet@umons.ac.be> Date: Tue, 12 Dec 2023 12:12:46 +0100 Subject: [PATCH] Tries enabling switch_pwr during injection for polarity 0 on pwr_batt and pwr_dps5005_fixed --- ohmpi/hardware_components/pwr_batt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ohmpi/hardware_components/pwr_batt.py b/ohmpi/hardware_components/pwr_batt.py index 2ec52c57..e9d819eb 100644 --- a/ohmpi/hardware_components/pwr_batt.py +++ b/ohmpi/hardware_components/pwr_batt.py @@ -47,8 +47,8 @@ class Pwr(PwrAbstract): def voltage(self, value): PwrAbstract.voltage.fset(self, value) - # def voltage_pulse(self, voltage=0., length=None, polarity=1): - # self.voltage_pulse(voltage=voltage, length=length, polarity=polarity, switch_pwr=self._switch_pwr_on_zero) + def voltage_pulse(self, voltage=0., length=None, polarity=1): + self.voltage_pulse(voltage=voltage, length=length, polarity=polarity, switch_pwr=self._switch_pwr_on_zero) def inject(self, polarity=1, injection_duration=None): self.inject(polarity=polarity, injection_duration=injection_duration, switch_pwr=self._switch_pwr_on_zero) -- GitLab