Ticket #2208 (closed: duplicate)
Error in Sans wavelength loop
| Reported by: | Nick Draper | Owned by: | Steve Williams |
|---|---|---|---|
| Priority: | critical | Milestone: | Iteration 27 |
| Component: | Mantid | Keywords: | |
| Cc: | Blocked By: | ||
| Blocking: | Tester: | Nick Draper |
Description
Set up runs in SANS gui Did a data reduction. Following advice before Christmas I used:
from ISISCommandInterface import *
wlist=[2.2,3.0,4.0,6.0,8.0,10.0]
# reduce data
outlist=[]
for i in range(len(wlist)-1):
wav1 = wlist[i]
wav2 = wlist[i+1]
reduced = WavRangeReduction(wav1, wav2, DefaultTrans,no_clean=True)
outlist.append(reduced)
Got this error message:
---------------------------------------------------------------------------
Thu 6. Jan 17:20:28 2011: Script execution started.
---------------------------------------------------------------------------
WavRangeReduction(2.2,3.0,True)
Running reduction for Wavelength range: 2.2, -.035, 3.0
AttributeError on line 204: "'NoneType' object has no attribute 'uncropped'" in file 'ISISCommandInterface.py' at line 220
See highlighted line below:
try:
#run the chain that must already have been setup
if ISIS_global().clean:
#the normal situation
result = ISIS_global()._reduce()
else:
#here the reduction chain has been run once before and only some parts need to be re-run
start_from = ISIS_global().step_num(ISIS_global().out_name)
#using this code you take a risk that some values will come over from previous reductions, the risk should be minimised
result = ISIS_global().run_steps(start_ind=start_from)
finally:
if not no_clean:
#normal behaviour, the chain has been used, at least a bit reset it
reset_singleton()
else:
#set the analysis to use the same run file again
workspace = ISIS_global().data_loader.uncropped
ISIS_global()._data_files.clear()
ISIS_global()._data_files[workspace] = workspace
return result
Change History
Note: See
TracTickets for help on using
tickets.

The requirements have changed and are now being deal with in this ticket #2212