Skip to content
Snippets Groups Projects
Commit 7af9e4c4 authored by Campbell, Stuart's avatar Campbell, Stuart
Browse files

Explicitly specify Ei. refs #2326

parent 7975478a
No related branches found
No related tags found
No related merge requests found
......@@ -277,16 +277,17 @@ class DirectEnergyConversion(object):
# TODO: This really should be done as soon as possible after loading
self.normalise(result_ws, result_ws, self.normalise_method, range_offset=bin_offset)
ConvertUnits(result_ws, result_ws, Target="DeltaE",EMode='Direct')
ConvertUnits(result_ws, result_ws, Target="DeltaE",EMode='Direct', EFixed=ei_value)
if not self.energy_bins is None:
Rebin(result_ws, result_ws, self.energy_bins)
if self.apply_detector_eff:
if (self.facility == "SNS"):
# Need to be in lambda for detector efficiency correction
ConvertUnits(result_ws, result_ws, Target="Wavelength", EMode="Direct")
ConvertUnits(result_ws, result_ws, Target="Wavelength", EMode="Direct", EFixed=ei_value)
He3TubeEfficiency(result_ws, result_ws)
ConvertUnits(result_ws, result_ws, Target="DeltaE",EMode='Direct')
ConvertUnits(result_ws, result_ws, Target="DeltaE",EMode='Direct', EFixed=ei_value)
else:
DetectorEfficiencyCor(result_ws, result_ws)
......
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