Changeset 5665


Ignore:
Timestamp:
Aug 18, 2008, 3:12:09 PM (16 years ago)
Author:
ole
Message:

More error catching based on Ted Rigby's runs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/coordinate_transforms/geo_reference.py

    r5288 r5665  
    204204            points = reshape(points, (1,2))
    205205
     206        msg = 'Points array must be two dimensional.\n'
     207        msg += 'I got %d dimensions' %len(points.shape)
     208        assert len(points.shape) == 2, msg
     209
    206210        msg = 'Input must be an N x 2 array or list of (x,y) values. '
    207211        msg += 'I got an %d x %d array' %points.shape   
Note: See TracChangeset for help on using the changeset viewer.