Skip to content

Commit

Permalink
Make disable_emittance live upto its name & otehr stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
T-Nicholls committed Oct 24, 2024
1 parent 49bf8b7 commit 79e0e11
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion virtac/atip_ioc_entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def main():
DATADIR / ring_mode / "feedback.csv",
DATADIR / ring_mode / "mirrored.csv",
DATADIR / ring_mode / "tunefb.csv",
not args.disable_emittance,
args.disable_emittance,
)

# Warn if set to default EPICS port(s) as this will likely cause PV conflicts.
Expand Down
6 changes: 2 additions & 4 deletions virtac/atip_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ def _create_records(self, limits_csv, disable_emittance):
float(line["upper"]),
float(line["lower"]),
int(line["precision"]),
float(line["drive high"]),
float(line["drive low"]),
)
bend_in_record = None
for element in self.lattice:
Expand All @@ -178,8 +180,6 @@ def _create_records(self, limits_csv, disable_emittance):
builder.SetDeviceName(get_pv.split(":", 1)[0])
in_record = builder.aIn(
get_pv.split(":", 1)[1],
DRVH=drive_high,
DRVL=drive_low,
LOPR=lower,
HOPR=upper,
PREC=precision,
Expand Down Expand Up @@ -220,8 +220,6 @@ def _create_records(self, limits_csv, disable_emittance):
builder.SetDeviceName(get_pv.split(":", 1)[0])
in_record = builder.aIn(
get_pv.split(":", 1)[1],
DRVH=drive_high,
DRVL=drive_low,
LOPR=lower,
HOPR=upper,
PREC=precision,
Expand Down

0 comments on commit 79e0e11

Please sign in to comment.