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

First step to add an option to turn the kikf correction on or off. refs #1865

parent b1401632
No related branches found
No related tags found
No related merge requests found
...@@ -273,7 +273,9 @@ class DirectEnergyConversion(object): ...@@ -273,7 +273,9 @@ class DirectEnergyConversion(object):
DetectorEfficiencyCor(result_ws, result_ws) DetectorEfficiencyCor(result_ws, result_ws)
# Ki/Kf Scaling... # Ki/Kf Scaling...
CorrectKiKf(result_ws, result_ws, EMode='Direct') if self.apply_kikf_correction:
# TODO: Write log message
CorrectKiKf(result_ws, result_ws, EMode='Direct')
# Make sure that our binning is consistent # Make sure that our binning is consistent
if not self.energy_bins is None: if not self.energy_bins is None:
...@@ -629,7 +631,13 @@ class DirectEnergyConversion(object): ...@@ -629,7 +631,13 @@ class DirectEnergyConversion(object):
self.abs_spectra_masks = None self.abs_spectra_masks = None
self.sample_mass = 1.0 self.sample_mass = 1.0
self.sample_rmm = 1.0 self.sample_rmm = 1.0
# Detector Efficiency Correction
self.apply_detector_eff = True self.apply_detector_eff = True
# Ki/Kf factor correction
self.apply_kikf_correction = True
def init_idf_params(self): def init_idf_params(self):
""" """
......
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