Changeset 16d8e5f in sasview for DataLoader/plugins/tiff_reader.py


Ignore:
Timestamp:
Jul 10, 2008 4:41:18 PM (16 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:
83ca047
Parents:
93f0a586
Message:

ReadInfo? module added in readers….every reader should return a read info object

File:
1 edited

Legend:

Unmodified
Added
Removed
  • DataLoader/plugins/tiff_reader.py

    r3dd7cce r16d8e5f  
    44class ReaderInfo: 
    55    """ 
     6        This class is a container of data. It stores values read from files 
    67    """ 
    78    ## Wavelength [A] 
     
    3334    ## Pixel size 
    3435    pixel_size = 0.5 
     36    ## x coordinate 
     37    x=[] 
     38    ##y coordinate 
     39    y=[] 
     40    ##dx error on y 
     41    dx=None 
     42    ## dy error on y 
     43    dy=None 
    3544    ## Error on each pixel 
    3645    error = None 
    37      
     46    ##type of data 
     47    type="" 
     48    ##z 
     49    Z=None 
     50 
    3851class Reader: 
    3952    """ 
     
    144157            output.image      = Z 
    145158            output.pixel_size = pixel 
    146                  
     159            output.type       ="2D" 
     160               
    147161            return output 
    148162         
Note: See TracChangeset for help on using the changeset viewer.