bluesky / hklpy

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

Constraint class belongs in util module #185

Closed prjemian closed 3 years ago

prjemian commented 3 years ago

A new capability (to report software versions) belongs in hkl.util but there is an import cycle problem discovered by unit testing: util imports diffract imports calc imports sample imports util

The util module should not import any other hklpy module, otherwise it is not truly a utility. The Constraint class has to move into util from diffract, which will break the above import cycle.

Originally posted by @prjemian in https://github.com/bluesky/hklpy/issues/160#issuecomment-864308796