Skip to content

Commit

Permalink
refs #6667 Intermediate commit -- debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
abuts committed Jun 20, 2013
1 parent 58e44c5 commit bd79a0f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Code/Mantid/scripts/Inelastic/DirectEnergyConversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,7 @@ def diagnose(self, white, **kwargs):
arg = par.lstrip('diag_')
if arg not in kwargs:
kwargs[arg] = getattr(self, arg)

for key,val in kwargs.iteritems():
print "diag for key:\t {0:<20}\t Value: {1:<20}".format(key, str(val))

# Get the white beam vanadium integrals
whiteintegrals = self.do_white(white, None, None,None) # No grouping yet
if 'second_white' in kwargs:
Expand All @@ -125,6 +123,7 @@ def diagnose(self, white, **kwargs):
other_whiteintegrals = self.do_white(second_white, None, None,None) # No grouping yet
kwargs['second_white'] = other_whiteintegrals


# Get the background/total counts from the sample if present
if 'sample' in kwargs:
sample = kwargs['sample']
Expand Down Expand Up @@ -156,7 +155,8 @@ def diagnose(self, white, **kwargs):
if 'hard_mask' in kwargs:
if 'instrument_name' not in kwargs:
kwargs['instrument_name'] = self.instr_name


logger.debug("------------------------------------------------------------------------------------------------------------")
# Check how we should run diag
if self.diag_spectra is None:
# Do the whole lot at once
Expand All @@ -176,6 +176,8 @@ def diagnose(self, white, **kwargs):
kwargs['start_index'] = bank[0] - 1
kwargs['end_index'] = bank[1] - 1
diagnostics.diagnose(whiteintegrals, **kwargs)
logger.debug("------------------------------------------------------------------------------------------------------------")
#raise AssertionError("Stop here")

if 'sample_counts' in kwargs:
DeleteWorkspace(Workspace='background_int')
Expand Down

0 comments on commit bd79a0f

Please sign in to comment.