Skip to content
Snippets Groups Projects
Commit 6a14f7fa authored by WHITFIELDRE email's avatar WHITFIELDRE email
Browse files

Ignore divide by zero warning in ConvertWANDSCDtoQ

parent 3ab9b4bf
No related branches found
No related tags found
No related merge requests found
......@@ -290,7 +290,9 @@ class ConvertWANDSCDtoQ(PythonAlgorithm):
createWS_alg.execute()
mtd.addOrReplace(self.getPropertyValue("OutputWorkspace")+'_normalization', createWS_alg.getProperty("OutputWorkspace").value)
output /= output_norm
old_settings = np.seterr(divide='ignore', invalid='ignore') # Ignore RuntimeWarning: invalid value encountered in true_divide
output /= output_norm # We often divide by zero here and we get NaN's, this is desired behaviour
np.seterr(**old_settings)
progress.report('Creating MDHistoWorkspace')
createWS_alg = self.createChildAlgorithm("CreateMDHistoWorkspace", enableLogging=False)
......
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