Changeset b86c920 in sasview


Ignore:
Timestamp:
Apr 13, 2009 4:05:11 PM (15 years ago)
Author:
Gervaise Alina <gervyh@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
60d6c23
Parents:
b64fa56
Message:

removing 1 on error loading is equal to zero

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guiframe/data_loader.py

    re5bfd57 rb86c920  
    105105        ## Creating a Data2D with output 
    106106        if hasattr(output,'data'): 
    107             temp = output.err_data 
    108             temp[temp==0]=1 
    109             msg= "Loading 2D error bars of value 1 were added to" 
    110             wx.PostEvent(parent, StatusEvent(status=" %s %s"% (msg,output.filename))) 
    111             new_plot = Data2D(image=output.data,err_image=temp, 
     107             
     108            new_plot = Data2D(image=output.data,err_image=output.err_data, 
    112109                              xmin=output.xmin,xmax=output.xmax, 
    113110                              ymin=output.ymin,ymax=output.ymax) 
     
    120117            if output.dy ==None : 
    121118                new_plot = Theory1D(output.x,output.y, dxl, dxw) 
    122                  
    123             elif len(output.dy[output.dy==0])==len(output.dy): 
    124                 output.dy[output.dy==0]=1  
    125                 msg="Loading 1D error bars of value 1 were added to " 
    126                 wx.PostEvent(parent, StatusEvent(status= "%s %s"%(msg, output.filename))) 
    127                 new_plot = Theory1D(output.x,output.y,output.dy, dxl, dxw) 
     119         
    128120            else: 
    129121                msg="Loading 1D data: " 
Note: See TracChangeset for help on using the changeset viewer.