Changeset ecd74a1 in sasview


Ignore:
Timestamp:
Mar 27, 2009 1:24:01 PM (16 years ago)
Author:
Jae Cho <jhjcho@…>
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
Message:

working on tiff reader and plotter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guiframe/data_loader.py

    rf2776f6 recd74a1  
    33from dataFitting import Data1D, Theory1D 
    44from danse.common.plottools.plottables import Data2D 
    5  
    65from DataLoader.loader import Loader 
    76 
     
    103102        if output.filename==None: 
    104103            output.filename=str(filename) 
     104             
    105105        ## Creating a Data2D with output 
    106106        if hasattr(output,'data'): 
     
    114114            new_plot.x_bins=output.x_bins 
    115115            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             
    116127        ##Creating Data1D with output 
    117128        else: 
Note: See TracChangeset for help on using the changeset viewer.