Ticket #2208 (closed: duplicate)

Opened 10 years ago

Last modified 5 years ago

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

comment:1 Changed 10 years ago by Steve Williams

  • Status changed from new to verify
  • Resolution set to duplicate

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

comment:2 Changed 10 years ago by Nick Draper

  • Status changed from verify to verifying
  • Tester set to Nick Draper

comment:3 Changed 10 years ago by Nick Draper

  • Status changed from verifying to closed

comment:4 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 3055

Note: See TracTickets for help on using tickets.