Changeset ecd74a1 in sasview
- Timestamp:
- Mar 27, 2009 1:24:01 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:
- c35e8492
- Parents:
- ca94880
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/data_loader.py
rf2776f6 recd74a1 3 3 from dataFitting import Data1D, Theory1D 4 4 from danse.common.plottools.plottables import Data2D 5 6 5 from DataLoader.loader import Loader 7 6 … … 103 102 if output.filename==None: 104 103 output.filename=str(filename) 104 105 105 ## Creating a Data2D with output 106 106 if hasattr(output,'data'): … … 114 114 new_plot.x_bins=output.x_bins 115 115 new_plot.y_bins=output.y_bins 116 117 ## Creating a pic image2D with output 118 elif hasattr(output,'image'): 119 msg= "Transformed an image to plot from" 120 wx.PostEvent(parent, StatusEvent(status=" %s %s"% (msg,output.filename))) 121 new_plot = Data2D(image=output.image, 122 xmin=output.xmin,xmax=output.xmax, 123 ymin=output.ymin,ymax=output.ymax, pictype = 'image') 124 new_plot.x_bins=output.x_bins 125 new_plot.y_bins=output.y_bins 126 116 127 ##Creating Data1D with output 117 128 else:
Note: See TracChangeset
for help on using the changeset viewer.