Open prjemian opened 3 years ago
Such as #143
A reflection should be pre-configured with the names of the positioners it uses, both pseudos and reals.
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.
HklSample
object has its own set of reflections.HklSample
object (created in hkl.calc
) needs to know the Diffractometer
object to which it belongs.
HklSample.add_reflection()
method for new reflectionsCalcRecip
needs the diffractometer object to which it belongs to create the HklSample
Note that:
The DCReflection
class (in #280) will enable this.
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!