Skip to content

Commit

Permalink
Re #11445 Diagnostics message if IDF does not contain property:
Browse files Browse the repository at this point in the history
multirep_tof_specta_list
  • Loading branch information
abuts committed Mar 30, 2015
1 parent dee2820 commit 39dc401
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -19,7 +19,7 @@
def setup_reducer(inst_name,reload_instrument=False):
"""
Given an instrument name or prefix this sets up a converter
object for the reduction
object for the reduction. Deprecated method
"""
try:
return DirectEnergyConversion(inst_name,reload_instrument)
Expand Down Expand Up @@ -839,6 +839,10 @@ def find_tof_range_for_multirep(self,workspace):

spectra_id = self.prop_man.multirep_tof_specta_list
if not spectra_id:
self.prop_man.log("*** WARNING! Multirep mode used but no closest and furthest spectra numbers defined in IDF (multirep_tof_specta_list)\n"\
" Using first spectra to identify TOF range for the energy range requested.\n"\
" This is correct only if all detectors are equidistant from the sample",\
'warning')
spectra_id = [1]

eMin,dE,eMax = PropertyManager.energy_bins.get_abs_range(self.prop_man)
Expand Down

0 comments on commit 39dc401

Please sign in to comment.