Changeset 1b0b3ca in sasview for DataLoader/readers


Ignore:
Timestamp:
Jul 7, 2008 6:39:06 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:
9a3adab
Parents:
cf3b781
Message:

not cleaned yet but working using guiframe

Location:
DataLoader/readers
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • DataLoader/readers/TXT2_Reader.py

    rc125e0c r1b0b3ca  
    77        should be able to read only 2 columns of data 
    88    """ 
    9      
     9    ext=['.txt','.dat']  
    1010    def _init_(self,x=None,y=None,dx=None,dy=None): 
    1111        # variable to store loaded values 
     
    1414        self.dx = dx 
    1515        self.dy = dy 
    16      
     16         
    1717    def read(self,path, format=None): 
    1818        """ Store the values loaded from file in local variables """ 
    1919        if not path == None: 
    2020            read_it = False 
    21             ext=['.txt','.dat']  
    22             for item in ext: 
     21             
     22            for item in self.ext: 
    2323                if path.lower().find(item)>=0: 
    2424                    read_it = True 
  • DataLoader/readers/TXT3_Reader.py

    rc125e0c r1b0b3ca  
    66        This class is loading values from given file or value giving by the user 
    77    """ 
    8      
     8    ext=['.txt','.dat']   
    99    def _init_(self,filename=None,x=None,y=None,dx=None,dy=None): 
    1010        # variable to store loaded values 
     
    2323        if not path == None: 
    2424            read_it = False 
    25             ext=['.txt','.dat']   
    26             for item in ext: 
     25             
     26            for item in self.ext: 
    2727                if path.lower().find(item)>=0: 
    2828                    read_it = True 
Note: See TracChangeset for help on using the changeset viewer.