Skip to content
Snippets Groups Projects
Commit 277e0128 authored by Owen Arnold's avatar Owen Arnold
Browse files

refs #11304. Use Global alg version for min max.

parent aa4aa647
No related branches found
No related tags found
No related merge requests found
......@@ -48,11 +48,10 @@ class CreateMD(DataProcessorAlgorithm):
def _convert_to_md(self, workspace, analysis_mode):
# Find the Min Max extents
min_max_alg = self.createChildAlgorithm('ConvertToMDMinMaxLocal')
min_max_alg = self.createChildAlgorithm('ConvertToMDMinMaxGlobal')
min_max_alg.setProperty('InputWorkspace', workspace)
min_max_alg.setProperty('QDimensions', 'Q3D')
min_max_alg.setProperty('dEAnalysisMode', analysis_mode)
min_max_alg.setProperty('QConversionScales', 'HKL')
min_max_alg.execute()
min_values = min_max_alg.getProperty('MinValues').value
max_values = min_max_alg.getProperty('MaxValues').value
......
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