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

Noisy RuntimeError from lm1k4_inj_dp2_tf1_wf1_wavefront when viewed in typhos #1147

Open
klauer opened this issue Aug 8, 2023 · 0 comments

Comments

@klauer
Copy link
Contributor

klauer commented Aug 8, 2023

Current Behavior

[2023-08-08 14:23:05] - ERROR - Failed to gather proper information from signal 'lm1k4_inj_dp2_tf1_wf1_wavefront' to initialize <PyDMChannel (sig://lm1k4_inj_dp2_tf1_wf1_wavefront)>
Traceback (most recent call last):
  File "/cds/home/k/klauer/Repos/typhos/typhos/plugins/core.py", line 206, in add_listener
    signal_val = self.signal.get()
  File "/cds/group/pcds/pyps/conda/py39/envs/pcds-5.7.3/lib/python3.9/site-packages/ophyd/signal.py", line 705, in get
    self._readback = self.inverse(value)
  File "/cds/group/pcds/pyps/conda/py39/envs/pcds-5.7.3/lib/python3.9/site-packages/ophyd/areadetector/base.py", line 125, in inverse
    raise RuntimeError(
RuntimeError: cannot reshape array of size 0 into shape (80, 80). Check IOC configuration.

Likely just due to gateway status, or an AD that has yet to be "primed" (no image yet seen), etc.
This doesn't really belong in typhos, nor pcdsdevices - perhaps ophyd, I suppose.

But what could be preferable? Raising a different exception that we can catch specially?

(Not really sure there is any better path forward; recording this for discussion / future reference at least)

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