From 8a995aafed7464c4ea0866a86d08ce3e9a4ebbde Mon Sep 17 00:00:00 2001 From: camea Date: Tue, 21 Jun 2022 15:31:44 +0200 Subject: [PATCH] fix issue with non matching persistent field --- secop_psi/ips_mercury.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/secop_psi/ips_mercury.py b/secop_psi/ips_mercury.py index 27c78e5..e965f5e 100644 --- a/secop_psi/ips_mercury.py +++ b/secop_psi/ips_mercury.py @@ -34,7 +34,7 @@ CURRENT_CHECK_SIZE = 2 class Field(MercuryChannel, Magfield): action = Parameter('action', EnumType(Action), readonly=False) - setpoint = Parameter('field setpoint', FloatRange(unit='T'), readonly=False, default=0) + setpoint = Parameter('field setpoint', FloatRange(unit='T'), default=0) atob = Parameter('field to amp', FloatRange(0, unit='A/T'), default=0) forced_persistent_field = Parameter( 'manual indication that persistent field is bad', BoolType(), readonly=False, default=False) @@ -95,9 +95,6 @@ class Field(MercuryChannel, Magfield): def read_setpoint(self): return self.query('PSU:SIG:FSET') - def write_setpoint(self, value): - return self.query('PSU:SIG:FSET', value) - def read_current(self): if self.slave_currents is None: self.slave_currents = [[] for _ in range(self.nslaves + 1)]