Focus not respecting sample_empty if a reduction has already been run in POLARIS script #38959
Labels
Bug
Issues and pull requests that are regressions or would be considered a bug by users (e.g. crashing)
Diffraction
Issues and pull requests related to diffraction
ISIS Team: Diffraction
Issue and pull requests managed by the Diffraction subteam at ISIS
Powder
Issues and pull requests related to powder diffraction
Milestone
Describe the bug
If you have already run
focus
then subsequent calls tofocus
will use the last empty run specified (or if not specified previously then the default in the mapping file), regardless ofsample_empty
user supplies.This is despite
polaris._inst_settings.sample_empty
looking like it is set correctly - perhaps it is just retrieving a cached/saved version?To Reproduce
(1) Ask me for files
(2) Update paths in .yaml files
(3) Run this script
(4) Check the workspace history, the last call to the Minus algorithm should use a workspace derived from run
98532
(5) Call
focus
again without specifyingsample_empty
(6) Check the workspace history, the last call to the Minus algorithm will use the same workspace derived from run
98532
Expected behavior
It should use the default empty run specified in the cycle map .yaml file, this will appear in the history like
summed_emtpy
or similar.Screenshots
Platform/Version (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: