Changeset 4602


Ignore:
Timestamp:
Jul 6, 2007, 3:06:01 PM (17 years ago)
Author:
ole
Message:

A minor fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/abstract_2d_finite_volumes/util.py

    r4582 r4602  
    970970    line11 = line1.split(',')
    971971
    972     if isinstance(line11[0],str) is True:
     972    try:
     973        float(line11[0])
     974    except:   
    973975        # We have found text in the first line
    974976        east_index = None
     
    997999        lines = lines[1:] # Remove header from data
    9981000    else:
    999         # No header, assume that this is a simple easting, northing file
     1001        # First field in first line contains a number, so there is no header. Assume that this is a simple easting, northing file
    10001002
    10011003        msg = 'There was no header in file %s and the number of columns is %d' %(filename, len(line11))
Note: See TracChangeset for help on using the changeset viewer.