Skip to content

Background init + no side effects when importing routes/SampleCentring.py

Marcus Oskarsson requested to merge gh-5e372c1b/86/mguijarr/background_init into master

Created by: mguijarr

As discussed this morning, this PR makes "background initialization" of hardware objects, in order to let the server responsive while things are initializing.

A second thing: previously "import routes.SampleCentring" was producing some side-effects, like connecting signals from mxcube.diffractometer or instanciating the camera hardware object. I refactored the code to have the same behaviour as before, without side effects.

Merge request reports

Loading