Changeset 7556


Ignore:
Timestamp:
Nov 16, 2009, 4:41:44 PM (14 years ago)
Author:
ole
Message:

Another obscured problem with assert - a bit like changeset:7543

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/abstract_2d_finite_volumes/quantity.py

    r7317 r7556  
    639639                    self.centroid_values[indices[i]] = values[i]
    640640        elif location == 'unique vertices':
    641             assert (len(values.shape) == 1 or num.allclose(values.shape[1:], 1),
    642                     'Values array must be 1d')
     641            msg = 'Values array must be 1d'
     642            assert len(values.shape) == 1 or num.allclose(values.shape[1:], 1), msg
    643643
    644644            self.set_vertex_values(values.flatten(), indices=indices,
Note: See TracChangeset for help on using the changeset viewer.