Commit 06fdaffb authored by Yuanpeng Zhang's avatar Yuanpeng Zhang Committed by Peterson, Peter
Browse files

update the routine for create abs corr input

parent 89cc77d4
......@@ -425,6 +425,7 @@ def create_absorption_input(
material={},
geometry={},
environment={},
find_environment=True,
opt_wl_min=0,
opt_wl_max=Property.EMPTY_DBL,
metaws=None,
......@@ -438,6 +439,7 @@ def create_absorption_input(
:param material: Optional material to use in SetSample
:param geometry: Optional geometry to use in SetSample
:param environment: Optional environment to use in SetSample
:param find_environment: Optional find_environment to control whether to figure out environment automatically.
:param opt_wl_min: Optional minimum wavelength. If specified, this is used instead of from the props
:param opt_wl_max: Optional maximum wavelength. If specified, this is used instead of from the props
:param metaws: Optional workspace name with metadata to use for donor workspace instead of reading from filename
......@@ -538,6 +540,10 @@ def create_absorption_input(
# Make sure one is set before calling SetSample
if material or geometry or environment:
mantid.simpleapi.SetSampleFromLogs(InputWorkspace=absName, Material=material, Geometry=geometry, Environment=environment)
mantid.simpleapi.SetSampleFromLogs(InputWorkspace=absName,
Material=material,
Geometry=geometry,
Environment=environment,
FindEnvironment=find_environment)
return absName
......@@ -1416,6 +1416,7 @@ class SNSPowderReduction(DistributedDataProcessorAlgorithm):
'Height': 7.,
'Radius': self._vanRadius,
'Center': [0., 0., 0.]},
find_environment=False,
opt_wl_min=self._wavelengthMin,
opt_wl_max=self._wavelengthMax)
......
......@@ -129,6 +129,7 @@ Improvements
Bugfixes
########
- For processing vanadium run, we don't want to find environment automatically in :ref:`SetSampleFromLogs <algm-SetSampleFromLogs>`.
- :ref:`IndexPeaks <algm-IndexPeaks>` can now index peaks in a PeaksWorkspace with only a single run without optimising the UB (i.e. it is now possible to set CommonUBForAll=True in this instance).
- Expanded the Q space search radius in DetectorSearcher to avoid missing peaks when using :ref:`PredictPeaks <algm-PredictPeaks>`.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment