Opened 17 years ago

Closed 17 years ago

#157 closed defect (fixed)

Export grid may fail if old sww files are around??

Reported by: ole Owned by: duncan
Priority: lowest Milestone:
Component: Appearance and visualisation Version:
Severity: minor Keywords:
Cc:

Description

In the presence for old sww files, test_all (verbose) gave the following error

======================================================================
ERROR: Test that sww information can be converted correctly to asc/prj
----------------------------------------------------------------------
Traceback (most recent call last):
  File "shallow_water\test_data_manager.py", line 1345, in test_export_grid
    format = 'asc')
  File "X:\inundation\sandpits\onielsen\anuga_core\source\anuga\shallow_water\data_manager.py", line 1673, in export_grid
    format)
  File "X:\inundation\sandpits\onielsen\anuga_core\source\anuga\shallow_water\data_manager.py", line 1824, in sww2dem
    print '    t [s] in [%f, %f], len(t) == %d'\
ValueError: min() arg is an empty sequence

======================================================================
ERROR: Test that sww information can be converted correctly to asc/prj
----------------------------------------------------------------------
Traceback (most recent call last):
  File "shallow_water\test_data_manager.py", line 1421, in test_export_gridII
    format = 'asc')
  File "X:\inundation\sandpits\onielsen\anuga_core\source\anuga\shallow_water\data_manager.py", line 1673, in export_grid
    format)
  File "X:\inundation\sandpits\onielsen\anuga_core\source\anuga\shallow_water\data_manager.py", line 1824, in sww2dem
    print '    t [s] in [%f, %f], len(t) == %d'\
ValueError: min() arg is an empty sequence

======================================================================
ERROR: Test that sww information can be converted correctly to asc/prj
----------------------------------------------------------------------
Traceback (most recent call last):
  File "shallow_water\test_data_manager.py", line 1546, in test_export_gridIII
    format = 'asc')
  File "X:\inundation\sandpits\onielsen\anuga_core\source\anuga\shallow_water\data_manager.py", line 1673, in export_grid
    format)
  File "X:\inundation\sandpits\onielsen\anuga_core\source\anuga\shallow_water\data_manager.py", line 1824, in sww2dem
    print '    t [s] in [%f, %f], len(t) == %d'\
ValueError: min() arg is an empty sequence

----------------------------------------------------------------------
Ran 617 tests in 53.203s

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.