Convert formatting automatically to f-strings
Automatically convert formatting with the following call: flynt -ll 2000 -v frappy* Result: 303/381 auto-converted. Failing conversions will be looked at manually in a follow-up commit. Change-Id: Icd996b27221202faccc15af78e0380cf52ee37f2 Reviewed-on: https://forge.frm2.tum.de/review/c/secop/frappy/+/30900 Tested-by: Jenkins Automated Tests <pedersen+jenkins@frm2.tum.de> Reviewed-by: Georg Brandl <g.brandl@fz-juelich.de> Reviewed-by: Alexander Zaft <a.zaft@fz-juelich.de>
This commit is contained in:
@ -84,9 +84,9 @@ class Capacitance(HasIO, Readable):
|
||||
return self.voltage
|
||||
|
||||
def write_freq(self, value):
|
||||
self.value = self.parse_reply(self.communicate('FR %g;SI' % value))
|
||||
self.value = self.parse_reply(self.communicate(f'FR {value:g};SI'))
|
||||
return self.freq
|
||||
|
||||
def write_voltage(self, value):
|
||||
self.value = self.parse_reply(self.communicate('V %g;SI' % value))
|
||||
self.value = self.parse_reply(self.communicate(f'V {value:g};SI'))
|
||||
return self.voltage
|
||||
|
Reference in New Issue
Block a user