Skip to content

merged code ophyd object problem #207

@JunAishima

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions