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

merged code ophyd object problem #207

Open
JunAishima opened this issue Mar 18, 2022 · 0 comments
Open

merged code ophyd object problem #207

JunAishima opened this issue Mar 18, 2022 · 0 comments

Comments

@JunAishima
Copy link
Collaborator

what fails - see the output from the lsdc server terminal below:
lsdc version - merged-2022-03-17 on NYX, which combines one-branch-to-rule-them-all and more current nyx_ophyd and master code.

conda env - lsdc-server-2022-1.3

  • within that is ophyd 1.6.3 but quick tests show that replacing that with ophyd 1.6.1 is not enough to make things work

what works:
lsdc version - nyx_ophyd (currently on beamline - minimal local changes)
conda env - lsdc-server_2021-1.3

In [8]: vector
Out[8]: VectorProgram(prefix='XF:19IDC-ES{Gon:1-Vec}', name='vector', read_attrs=['start', 'start.omega', 'start.x', 'start.y', 'start.z', 'end', 'end.omega', 'end.x', 'end.y', 'end.z', 'expose', 'hold', 'buffer_time', 'frame_exptime', 'num_frames', 'active', 'state'], configuration_attrs=['start', 'end'])

In [9]: vector.prepare_move()
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-9-0eba2e4a2c16> in <module>
----> 1 vector.prepare_move()

/opt/conda_envs/lsdc-server-2022-1-latest/lib/python3.7/site-packages/ophyd/device.py in __getattr__(self, name)
   1195         # Components will be instantiated through the descriptor mechanism in
   1196         # the Component class, so anything reaching this point is an error.
-> 1197         raise AttributeError(name)
   1198 
   1199     def _instantiate_component(self, attr):

AttributeError: prepare_move

In [10]: exit

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