Skip to content

Commit

Permalink
Fix test for existing workspace in dgreduce.py
Browse files Browse the repository at this point in the history
Refs #8057
  • Loading branch information
martyngigg committed Oct 4, 2013
1 parent 74c23e1 commit d0d1510
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Code/Mantid/scripts/Inelastic/dgreduce.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def arb_units(wb_run,sample_run,ei_guess,rebin,map_file='default',monovan_run=No


if Reducer.det_cal_file != None :
if isinstance(sample_run,api.Workspace) or mtd.doesExist(sample_run):
if isinstance(sample_run,api.Workspace) or (type(sample_run) == str and mtd.doesExist(sample_run)):
Reducer.log('Input is pre-loaded workspace, ignoring specified det_cal_file "%s"' % str(Reducer.det_cal_file))
Reducer.log('Use UpdateInstrumentFromFile to apply calibration to %s' % (str(sample_run)))
elif isinstance(Reducer.det_cal_file,str) and not Reducer.det_cal_file in mtd : # it is a file
Expand Down

0 comments on commit d0d1510

Please sign in to comment.