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

Commit

Permalink
#110 remove by commenting it out
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed Jan 24, 2019
1 parent 292b540 commit 9c53ba8
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions profile_bluesky/startup/43-procedures.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,14 @@ def mode_WAXS():
guard_slit.v_size, terms.SAXS.guard_v_size.value,
)
yield from bps.sleep(0.5) # FIXME: needed now?
while max(v_diff, h_diff) > 0.02: # FIXME: What good is this loop?
logger.debug("waiting for guard slits to finish their move")
yield from bps.sleep(0.5)
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)

# while max(v_diff, h_diff) > 0.02: # FIXME: What good is this loop?
# logger.debug("waiting for guard slits to finish their move")
# yield from bps.sleep(0.5)
# 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)
# logger.debug("guard slits horizontal difference = %g" % h_diff)
# logger.debug("guard slits vertical difference = %g" % v_diff)

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)
logger.debug("USAXS slits horizontal difference = %g" % h_diff)
Expand Down

0 comments on commit 9c53ba8

Please sign in to comment.