Changeset 4602 for anuga_core/source/anuga/abstract_2d_finite_volumes
- Timestamp:
- Jul 6, 2007, 3:06:01 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/abstract_2d_finite_volumes/util.py
r4582 r4602 970 970 line11 = line1.split(',') 971 971 972 if isinstance(line11[0],str) is True: 972 try: 973 float(line11[0]) 974 except: 973 975 # We have found text in the first line 974 976 east_index = None … … 997 999 lines = lines[1:] # Remove header from data 998 1000 else: 999 # No header, assume that this is a simple easting, northing file1001 # First field in first line contains a number, so there is no header. Assume that this is a simple easting, northing file 1000 1002 1001 1003 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.