Ignore:
Timestamp:
Mar 10, 2009, 1:50:08 PM (15 years ago)
Author:
rwilson
Message:

Changed 'max(a.flat)' to 'num.max(a)' (ditto min()).

File:
1 edited

Legend:

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

    r6304 r6481  
    879879
    880880            msg += '------------------------------------------------\n'
    881             msg += '  Speeds in [%f, %f]\n' % (min(self.max_speed.flat),
    882                                                max(self.max_speed.flat))
     881            msg += '  Speeds in [%f, %f]\n' % (num.min(self.max_speed),
     882                                               num.max(self.max_speed))
    883883            msg += '  Histogram:\n'
    884884
     
    892892                else:
    893893                    # Closed upper interval
    894                     hi = max(self.max_speed.flat)
     894                    hi = num.max(self.max_speed)
    895895                    msg += '    [%f, %f]: %d\n' % (lo, hi, count)
    896896
Note: See TracChangeset for help on using the changeset viewer.