Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Commit

Permalink
#59 these are motors, not just signals
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed Jan 24, 2019
1 parent cf81949 commit e20cb51
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions profile_bluesky/startup/43-procedures.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,11 @@ def mode_WAXS():
yield from bps.sleep(0.5)
while max(v_diff, h_diff) > 0.02: # FIXME: What good is this loop?
yield from bps.sleep(0.5)
v_diff = abs((guard_slit.top.value-guard_slit.bot.value) - terms.SAXS.guard_v_size.value)
h_diff = abs((guard_slit.outb.value-guard_slit.inb.value) - terms.SAXS.guard_h_size.value)
v_diff = abs((guard_slit.top.position - guard_slit.bot.position) - terms.SAXS.guard_v_size.value)
h_diff = abs((guard_slit.outb.position - guard_slit.inb.position) - terms.SAXS.guard_h_size.value)

v_diff = abs(usaxs_slit.v_size.value - terms.SAXS.v_size.value)
h_diff = abs(usaxs_slit.h_size.value - terms.SAXS.h_size.value)
v_diff = abs(usaxs_slit.v_size.position - terms.SAXS.v_size.value)
h_diff = abs(usaxs_slit.h_size.position - terms.SAXS.h_size.value)
if max(v_diff, h_diff) > 0.02:
logger.info("Moving Beam defining slits")
yield from bps.mv(
Expand Down

0 comments on commit e20cb51

Please sign in to comment.