hkl.context.
TemporaryGeometry
Context manager that restores physical geometry after a block of code
UsingEngine
Context manager that uses a calculation engine temporarily