Skip to content

Commit

Permalink
tweak radiator naming code, switch back to correct EPICS PV for beam …
Browse files Browse the repository at this point in the history
…energy
  • Loading branch information
sdobbs authored and markito3 committed Jan 14, 2018
1 parent 473b7de commit 52a72e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/update_epics.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def setup_run_conds(run):
# Beam energy - HALLD:pX gives the corrected measured beam energy
# - MMSHLDE gives beam energy from model
try:
conditions["beam_energy"] = float(caget("HALLD:pX"))
conditions["beam_energy"] = float(caget("HALLD:p"))
#conditions["beam_energy"] = float(caget("MMSHLDE"))
except:
conditions["beam_energy"] = -1.
Expand Down Expand Up @@ -185,7 +185,7 @@ def setup_run_conds(run):
# 12/7/2017: #5000 is the retracted state, and all of the non-diamond radiators have ID #0.
# the diamonds have more complicated IDs
# see: https://halldsvn.jlab.org/repos/trunk/controls/epics/app/goniApp/Db/goni.substitutions
if conditions["radiator_id"] != 5000 and conditions["radiator_id"] != 0:
if conditions["radiator_id"] != 5000 or conditions["radiator_id"] != 0:
# Polarization direction - parallel or perpendicular to floor
try:
polarization_dir = int(caget("HD:CBREM:PLANE"))
Expand Down

0 comments on commit 52a72e3

Please sign in to comment.