- Timestamp:
- Apr 13, 2009 4:05:11 PM (16 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/data_loader.py
re5bfd57 rb86c920 105 105 ## Creating a Data2D with output 106 106 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, 112 109 xmin=output.xmin,xmax=output.xmax, 113 110 ymin=output.ymin,ymax=output.ymax) … … 120 117 if output.dy ==None : 121 118 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 128 120 else: 129 121 msg="Loading 1D data: "
Note: See TracChangeset
for help on using the changeset viewer.