Changeset 272b107 in sasview for DataLoader/readers


Ignore:
Timestamp:
Apr 10, 2009 9:55:44 PM (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:
3aed0eb
Parents:
249bae9
Message:

improved…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • DataLoader/readers/ascii_reader.py

    r3617aa2 r272b107  
    111111                         
    112112                        #To reject the line when reader meets less columns of data 
    113                         if lentoks == 3: 
    114                             _dy = float(toks[2]) 
    115                         elif lentoks == 4: 
    116                             _dx = float(toks[3]) 
     113                        #if lentoks == 3: 
     114                        #    _dy = float(toks[2]) 
     115                        #elif lentoks == 4: 
     116                        #    _dx = float(toks[3]) 
    117117                         
    118118                        #Reset the header line counters 
     
    176176                         
    177177                        #If the previous columns are less than the current, mark the previous as non-data and reset the dependents.   
    178                         if lentoks < new_lentoks : 
    179                             if is_data == False: 
     178                        if lentoks != new_lentoks : 
     179                            if is_data == True: 
     180                                break 
     181                            else: 
    180182                                i = -1 
    181183                                i1 = 0 
    182184                                j = -1 
    183185                                j1 = -1 
     186                             
    184187                             
    185188                        #Delete the previously stored lines of data candidates if is not data. 
Note: See TracChangeset for help on using the changeset viewer.