bluesky / hklpy

Diffractometer computation library with ophyd pseudopositioner support
https://blueskyproject.io/hklpy
BSD 3-Clause "New" or "Revised" License
3 stars 11 forks source link

each reflection should be handled as a Python class #189

Open prjemian opened 3 years ago

prjemian commented 3 years ago

If all the details of each reflection were handled as a Python class, then many open issues would become much easier to resolve.

Thanks @strempfer for the motivation of this issue!


prjemian commented 3 years ago

Such as #143

prjemian commented 2 years ago

A reflection should be pre-configured with the names of the positioners it uses, both pseudos and reals.

prjemian commented 2 years ago

Notes

A reflection represents a specific coordination between:

The names and ordering of the reals are specified by the diffractometer. The names and ordering of the pseudos are specified by the reciprocal-space computational engine.

A diffractometer may have several samples, each with their own list of reflections. The reciprocal-space computational engine cannot be changed once the diffractometer object is created.

Refactor, considering:

prjemian commented 1 year ago

Note that:

prjemian commented 10 months ago

The DCReflection class (in #280) will enable this.