Skip to content
Snippets Groups Projects
Unverified Commit 3ab9b4bf authored by Martyn Gigg's avatar Martyn Gigg Committed by GitHub
Browse files

Merge pull request #23004 from mantidproject/23002_IndirectElwinNormalize

Indirect - Data Analysis - Normalize by lowest temperature in ElasticWindowMultiple
parents 24b8db8a 13d299f2
No related branches found
No related tags found
No related merge requests found
...@@ -4,8 +4,6 @@ from mantid.simpleapi import AppendSpectra, CloneWorkspace, ElasticWindow, LoadL ...@@ -4,8 +4,6 @@ from mantid.simpleapi import AppendSpectra, CloneWorkspace, ElasticWindow, LoadL
from mantid.kernel import * from mantid.kernel import *
from mantid.api import * from mantid.api import *
import numpy as np
def _normalize_by_index(workspace, index): def _normalize_by_index(workspace, index):
""" """
...@@ -210,7 +208,7 @@ class ElasticWindowMultiple(DataProcessorAlgorithm): ...@@ -210,7 +208,7 @@ class ElasticWindowMultiple(DataProcessorAlgorithm):
elt_workspace = CloneWorkspace(InputWorkspace=elf_workspace, OutputWorkspace="__cloned", elt_workspace = CloneWorkspace(InputWorkspace=elf_workspace, OutputWorkspace="__cloned",
StoreInADS=False, EnableLogging=False) StoreInADS=False, EnableLogging=False)
_normalize_by_index(elt_workspace, np.argmin(sample_param)) _normalize_by_index(elt_workspace, 0)
self.setProperty('OutputELT', elt_workspace) self.setProperty('OutputELT', elt_workspace)
......
...@@ -69,4 +69,4 @@ Bugfixes ...@@ -69,4 +69,4 @@ Bugfixes
- The MSDFit algorithm now uses the fully specified model given in the interface; previously MSDFit only used the - The MSDFit algorithm now uses the fully specified model given in the interface; previously MSDFit only used the
model specified in the 'Fit Type' drop-down menu. model specified in the 'Fit Type' drop-down menu.
- Fixed a failure in the wavelength interpolation of :ref:`MonteCarloAbsorption <algm-MonteCarloAbsorption>` which occurred under certain input property combinations. - Fixed a failure in the wavelength interpolation of :ref:`MonteCarloAbsorption <algm-MonteCarloAbsorption>` which occurred under certain input property combinations.
- The ElasticWindowMultiple algorithm now normalizes the \*_elt workspace by the lowest temperature.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment