Opened 17 years ago

Closed 17 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:


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:

Traceback (most recent call last):
  File "", line 63, in ?
    G = Geospatial_data(elevation_file+'.txt')
  File "X:\inundation\sandpits\onielsen\anuga_core\source\anuga\geospatial_data\", line 164, in __init__
    self.import_points_file(file_name, delimiter, verbose)
  File "X:\inundation\sandpits\onielsen\anuga_core\source\anuga\geospatial_data\", line 548, in import_points_file
    data_points, attributes, geo_reference =\
  File "X:\inundation\sandpits\onielsen\anuga_core\source\anuga\geospatial_data\", 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\", line 973, in _read_csv_file_blocking
    y_header = header.pop(0)
IndexError: pop from empty list

Change History (1)

comment:1 Changed 17 years ago by duncan

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.