Changeset 730c9eb in sasview for DataLoader/readers


Ignore:
Timestamp:
Jul 15, 2009 11:40:17 AM (15 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:
b9d5f88
Parents:
058b2d7
Message:

Changed the minimum # of lines for data into 10

File:
1 edited

Legend:

Unmodified
Added
Removed
  • DataLoader/readers/ascii_reader.py

    r3aed0eb r730c9eb  
    2222class Reader: 
    2323    """ 
    24         Class to load ascii files (2 or 3 columns) 
     24        Class to load ascii files (2, 3 or 4 columns) 
    2525    """ 
    2626    ## File type 
     
    5555                 
    5656                #Jae could not find python universal line spliter: keep the below for now 
    57                 # some ascii data has \r line separator, try it when it has only one line 
     57                # some ascii data has \r line separator, try it when the data is on only one long line 
    5858                if len(lines) < 2 :  
    5959                    lines = buff.split('\r') 
     
    9494                #Initialize counters for data lines and header lines. 
    9595                is_data = False #Has more than 3 lines 
    96                 mum_data_lines = 3 # More than "3" lines of data is considered as actual data unless that is the only data 
     96                mum_data_lines = 10 # More than "3" lines of data is considered as actual data unless that is the only data 
    9797 
    9898                i=-1            # To count # of current data candidate lines 
Note: See TracChangeset for help on using the changeset viewer.