Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix centroid mode ADCompVision plugin ROI for low mag camera #14

Open
dalekreitler-bnl opened this issue Mar 13, 2023 · 1 comment
Open

Comments

@dalekreitler-bnl
Copy link
Contributor

If a scan doesn't get aborted cleanly the Array Port for the ADCompVision plugin gets stuck on an ROI that doesn't make sense. We need to specify the ROI in stage_sigs for the "centroid" low mag cam mode to prevent errors on subsequent scans.

if self.cam_mode.get() == "centroid":

stack trace indicating where check_value throws an exception on attempted move:

File "/nsls2/data/amx/shared/config/bluesky/profile_collection/startup/97-plan_development.py", line 166, in align_centroid
    yield from move_centroid_inner(n_steps)
  File "/nsls2/data/amx/shared/config/bluesky/profile_collection/startup/97-plan_development.py", line 162, in move_centroid_inner
    yield from bps.mvr(x_axis, delta_x)
  File "/nsls2/conda/envs/2023-1.0-py310/lib/python3.10/site-packages/bluesky/plan_stubs.py", line 300, in mvr
    return (yield from inner_mvr())
  File "/nsls2/conda/envs/2023-1.0-py310/lib/python3.10/site-packages/bluesky/utils/__init__.py", line 1147, in dec_inner
    return (yield from plan)
  File "/nsls2/conda/envs/2023-1.0-py310/lib/python3.10/site-packages/bluesky/preprocessors.py", line 1075, in relative_set_wrapper
    return (yield from plan)
  File "/nsls2/conda/envs/2023-1.0-py310/lib/python3.10/site-packages/bluesky/preprocessors.py", line 245, in msg_mutator
    ret = yield msg
  File "/nsls2/conda/envs/2023-1.0-py310/lib/python3.10/site-packages/bluesky/preprocessors.py", line 195, in plan_mutator
    inner_ret = yield msg
  File "/nsls2/conda/envs/2023-1.0-py310/lib/python3.10/site-packages/bluesky/preprocessors.py", line 195, in plan_mutator
    inner_ret = yield msg
  File "/nsls2/conda/envs/2023-1.0-py310/lib/python3.10/site-packages/bluesky/preprocessors.py", line 195, in plan_mutator
    inner_ret = yield msg
  [Previous line repeated 1 more time]
  File "/nsls2/conda/envs/2023-1.0-py310/lib/python3.10/site-packages/bluesky/run_engine.py", line 1583, in _run
    new_response = await coro(msg)
  File "/nsls2/conda/envs/2023-1.0-py310/lib/python3.10/site-packages/bluesky/run_engine.py", line 2088, in _set
    ret = obj.set(*msg.args, **kwargs)
  File "/nsls2/conda/envs/2023-1.0-py310/lib/python3.10/site-packages/ophyd/positioner.py", line 92, in set
    return self.move(new_position, wait=wait, moved_cb=moved_cb, timeout=timeout)
  File "/nsls2/conda/envs/2023-1.0-py310/lib/python3.10/site-packages/ophyd/utils/epics_pvs.py", line 202, in wrapper
    return fcn(self, *args, **kwargs)
  File "/nsls2/conda/envs/2023-1.0-py310/lib/python3.10/site-packages/ophyd/epics_motor.py", line 179, in move
    status = super().move(position, **kwargs)
  File "/nsls2/conda/envs/2023-1.0-py310/lib/python3.10/site-packages/ophyd/positioner.py", line 195, in move
    self.check_value(position)
  File "/nsls2/conda/envs/2023-1.0-py310/lib/python3.10/site-packages/ophyd/epics_motor.py", line 248, in check_value
    self.user_setpoint.check_value(pos)
  File "/nsls2/conda/envs/2023-1.0-py310/lib/python3.10/site-packages/ophyd/signal.py", line 1861, in check_value
    raise LimitError(
ophyd.utils.errors.LimitError: gonio_gx_user_setpoint: value nan outside of range: [-16000.0, 16000.0]
[I 2023-03-13 06:30:58,069.069 IPKernelApp  ipkernel:448] Exception in execute request:
LimitError: gonio_gx_user_setpoint: value nan outside of range: [-16000.0, 16000.0]
@dalekreitler-bnl
Copy link
Contributor Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant