Opened 18 years ago
Closed 18 years ago
#155 closed defect (fixed)
Error msg on Geospatial_data input
| Reported by: | anonymous | Owned by: | duncan |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Functionality and features | Version: | |
| Severity: | minor | Keywords: | |
| Cc: |
Description
Geospatial expects a comma separated file (with header). This needs to be communicated in case the format is wrong.
Here's what happens if a space separated file is passed:
X:\inundation\sandpits\onielsen\anuga_work\development\Rudy_vandrie_2007\blackbutt>python run_blackbutt.py
Traceback (most recent call last):
File "run_blackbutt.py", line 63, in ?
G = Geospatial_data(elevation_file+'.txt')
File "X:\inundation\sandpits\onielsen\anuga_core\source\anuga\geospatial_data\geospatial_data.py", line 164, in __init__
self.import_points_file(file_name, delimiter, verbose)
File "X:\inundation\sandpits\onielsen\anuga_core\source\anuga\geospatial_data\geospatial_data.py", line 548, in import_points_file
data_points, attributes, geo_reference =\
File "X:\inundation\sandpits\onielsen\anuga_core\source\anuga\geospatial_data\geospatial_data.py", line 937, in _read_csv_file
max_read_lines=1e30) #If the file is bigger that this, block..
File "X:\inundation\sandpits\onielsen\anuga_core\source\anuga\geospatial_data\geospatial_data.py", line 973, in _read_csv_file_blocking
y_header = header.pop(0)
IndexError: pop from empty list
Note: See
TracTickets for help on using
tickets.
