Skip to content

Commit a190ce4

Browse files
committed
PERF: delay preset loading for hutch-python
1 parent 484fd4d commit a190ce4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: hutch_python/load_conf.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -596,10 +596,12 @@ def load_conf(conf, hutch_dir=None, args=None):
596596
path.mkdir()
597597
path.chmod(0o777)
598598
if experiment is None:
599-
setup_preset_paths(hutch=beamline_presets)
599+
setup_preset_paths(hutch=beamline_presets,
600+
defer_loading=True)
600601
else:
601602
setup_preset_paths(hutch=beamline_presets,
602-
exp=experiment_presets)
603+
exp=experiment_presets,
604+
defer_loading=True)
603605

604606
# configure objects
605607
if obj_config is not None:

0 commit comments

Comments
 (0)