Skip to content

Commit 79e0e11

Browse files
committed
Make disable_emittance live upto its name & otehr stuff
1 parent 49bf8b7 commit 79e0e11

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

virtac/atip_ioc_entry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def main():
6363
DATADIR / ring_mode / "feedback.csv",
6464
DATADIR / ring_mode / "mirrored.csv",
6565
DATADIR / ring_mode / "tunefb.csv",
66-
not args.disable_emittance,
66+
args.disable_emittance,
6767
)
6868

6969
# Warn if set to default EPICS port(s) as this will likely cause PV conflicts.

virtac/atip_server.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@ def _create_records(self, limits_csv, disable_emittance):
162162
float(line["upper"]),
163163
float(line["lower"]),
164164
int(line["precision"]),
165+
float(line["drive high"]),
166+
float(line["drive low"]),
165167
)
166168
bend_in_record = None
167169
for element in self.lattice:
@@ -178,8 +180,6 @@ def _create_records(self, limits_csv, disable_emittance):
178180
builder.SetDeviceName(get_pv.split(":", 1)[0])
179181
in_record = builder.aIn(
180182
get_pv.split(":", 1)[1],
181-
DRVH=drive_high,
182-
DRVL=drive_low,
183183
LOPR=lower,
184184
HOPR=upper,
185185
PREC=precision,
@@ -220,8 +220,6 @@ def _create_records(self, limits_csv, disable_emittance):
220220
builder.SetDeviceName(get_pv.split(":", 1)[0])
221221
in_record = builder.aIn(
222222
get_pv.split(":", 1)[1],
223-
DRVH=drive_high,
224-
DRVL=drive_low,
225223
LOPR=lower,
226224
HOPR=upper,
227225
PREC=precision,

0 commit comments

Comments
 (0)