Changeset 7037


Ignore:
Timestamp:
May 14, 2009, 2:33:42 PM (11 years ago)
Author:
rwilson
Message:

Fixed syntax errors.

Location:
branches/numpy/anuga/abstract_2d_finite_volumes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/numpy/anuga/abstract_2d_finite_volumes/generic_boundary_conditions.py

    r7035 r7037  
    490490        # only part of mesh boundary is actually used with a given
    491491        # file boundary sww file.
    492         if hasattr(self.F, 'indices_outside_mesh') and
    493                len(self.F.indices_outside_mesh) > 0:
     492        if (hasattr(self.F, 'indices_outside_mesh') and
     493               len(self.F.indices_outside_mesh)) > 0:
    494494            msg = 'WARNING: File_boundary has points outside the mesh '
    495495            msg += 'given in %s. ' % filename
  • branches/numpy/anuga/abstract_2d_finite_volumes/quantity.py

    r7035 r7037  
    461461        msg = 'Indices must be a list, array or None'
    462462        #assert (indices is None
    463         assert isinstance(indices, (None, list, num.ndarray))), msg
     463        assert isinstance(indices, (None, list, num.ndarray)), msg
    464464
    465465        # Determine which 'set_values_from_...' to use
Note: See TracChangeset for help on using the changeset viewer.