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

Can we automate the "import gi before hkl" rule? #220

Closed prjemian closed 2 years ago

prjemian commented 2 years ago

Users will often get this step out of order:

import gi
gi.require_version('Hkl', '5.0')
import hkl

Can it be automated (such as placing it in the package's __init__.py file)?

prjemian commented 2 years ago

In initial tests, it's as simple as that. Why'd this take so long to come up as the easiest solution?