Ignore:
Timestamp:
Jun 30, 2009, 2:07:41 PM (15 years ago)
Author:
ole
Message:

Merged numpy branch back into the trunk.

In ~/sandpit/anuga/anuga_core/source
svn merge -r 6246:HEAD ../../branches/numpy .

In ~/sandpit/anuga/anuga_validation
svn merge -r 6417:HEAD ../branches/numpy_anuga_validation .

In ~/sandpit/anuga/misc
svn merge -r 6809:HEAD ../branches/numpy_misc .

For all merges, I used numpy version where conflicts existed

The suites test_all.py (in source/anuga) and validate_all.py passed using Python2.5 with numpy on my Ubuntu Linux box.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/caching/caching.py

    r7197 r7276  
    5151  unix = True
    5252
    53 import Numeric as num
     53import numpy as num
    5454
    5555
     
    13941394      I.sort()   
    13951395      val = myhash(I, ids)
    1396   elif type(T) == num.ArrayType:
     1396  elif isinstance(T, num.ndarray):
    13971397      T = num.array(T) # Ensure array is contiguous
    13981398
     
    14651465            identical = compare(a, b, ids)
    14661466           
    1467     elif type(A) == num.ArrayType:
     1467    elif isinstance(A, num.ndarray):
    14681468        # Use element by element comparison
    14691469        identical = num.alltrue(A==B)
     
    24392439      argstr = argstr + "'"+str(args)+"'"
    24402440    else:
    2441       # Truncate large Numeric arrays before using str()
    2442       if type(args) == num.ArrayType:
     2441      # Truncate large numeric arrays before using str()
     2442      if isinstance(args, num.ndarray):
    24432443#        if len(args.flat) > textwidth: 
    24442444#        Changed by Duncan and Nick 21/2/07 .flat has problems with
Note: See TracChangeset for help on using the changeset viewer.