Changeset 16d8e5f in sasview for DataLoader/readers/IgorReader.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/readers/IgorReader.py

    r8d6440f r16d8e5f  
    165165        self.center_x = center_x 
    166166        self.center_y = center_y 
     167         
     168        from readInfo import ReaderInfo    
     169        output = ReaderInfo() 
     170        output.Z=Z 
     171        output.xmin    =xmin-xstep/2.0 
     172        output.xmax    = xmax+xstep/2.0 
     173        output.ymin    =ymin-ystep/2.0 
     174        output.ymax    =ymax+ystep/2.0 
     175        output.type    ="2D" 
     176         
    167177        logging.info("IgorReader reading %s"%self.file) 
    168         return Z, xmin-xstep/2.0, xmax+xstep/2.0, ymin-ystep/2.0, ymax+ystep/2.0 
     178        return output 
    169179      
Note: See TracChangeset for help on using the changeset viewer.