fix %g in the write_target

Change-Id: I3c15ed44848c792320dd146d17d4bb52f30f49f0
This commit is contained in:
Oksana Shliakhtun
2023-03-08 14:57:22 +01:00
parent e12f2bacb1
commit 7a3cfe9836

View File

@ -166,7 +166,7 @@ class HeaterOutput(LakeShore, HasControlledBy, HasIO, Writable):
self.set_heater_mode(3)
self.set_range()
percent = self.power_to_percent(target)
reply = self.set_par(f'MOUT {self.loop}', '%g' % percent)
reply = self.set_par(f'MOUT {self.loop}', percent)
return self.percent_to_power(reply)
def set_heater_mode(self, mode):