Ticket #8848: allow_run_simulation_data_reduction.patch

File allow_run_simulation_data_reduction.patch, 2.4 KB (added by Gesner Passos, 7 years ago)
  • Code/Mantid/instrument/SANS2D_Definition.xml

    diff --git a/Code/Mantid/instrument/SANS2D_Definition.xml b/Code/Mantid/instrument/SANS2D_Definition.xml
    index 5bc9c8f..e14870d 100644
    a b  
    33     see http://www.mantidproject.org/IDF --> 
    44<instrument xmlns="http://www.mantidproject.org/IDF/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mantidproject.org/IDF/1.0 Schema/IDFSchema.xsd"  
    55 name="SANS2D" valid-from   ="1900-01-31 23:59:59" 
    6                           valid-to     ="2100-01-31 23:59:59" 
    7                           last-modified="2012-03-04 00:00:00"> 
     6                          valid-to     ="2014-02-01 23:59:58" 
     7                          last-modified="2014-02-07 08:34:00"> 
    88 
    99  <defaults> 
    1010    <length unit="meter"/> 
  • Code/Mantid/scripts/SANS/SANSUtility.py

    diff --git a/Code/Mantid/scripts/SANS/SANSUtility.py b/Code/Mantid/scripts/SANS/SANSUtility.py
    index 4b8eb50..1a0869b 100644
    a b def fromEvent2Histogram(ws_event, ws_monitor = None): 
    453453    """ 
    454454    if not ws_monitor: 
    455455        ws_monitor = getMonitor4event(ws_event) 
    456      
    457     aux_hist = RebinToWorkspace(ws_event, ws_monitor, False) 
     456    rebbining = "5.5,45.5,50.0, 50.0,1000.0, 500.0,1500.0, 750.0,99750.0, 255.0,100005.0" 
     457    aux_hist = Rebin(ws_event, rebbining, False)#RebinToWorkspace(ws_event, ws_monitor, False) 
    458458     
    459459    name = '__monitor_tmp' 
    460     ws_monitor.clone(OutputWorkspace=name) 
     460    Rebin(ws_monitor, rebbining,False,OutputWorkspace=name) 
     461    #ws_monitor.clone(OutputWorkspace=name) 
    461462    ConjoinWorkspaces(name, aux_hist, CheckOverlapping=True)     
    462     CopyInstrumentParameters(ws_event, OutputWorkspace=name) 
     463    CopyInstrumentParameters(ws_event, OutputWorkspace='__monitor_tmp') 
    463464     
    464465    ws_hist = RenameWorkspace(name, OutputWorkspace=str(ws_event)) 
    465466 
  • Code/Mantid/scripts/SANS/isis_reduction_steps.py

    diff --git a/Code/Mantid/scripts/SANS/isis_reduction_steps.py b/Code/Mantid/scripts/SANS/isis_reduction_steps.py
    index 2b1536c..a19b617 100644
    a b class SliceEvent(ReductionStep): 
    16131613            return 
    16141614        start, stop = reducer.getCurrSliceLimit() 
    16151615         
    1616         _monitor = getMonitor4event(ws_pointer) 
     1616        _monitor = LoadNexusMonitors(reducer.get_sample().loader._data_file) 
    16171617 
    16181618        hist, others = slice2histogram(ws_pointer, start, stop, _monitor) 
    16191619