Changeset 2823 for trunk

Show
Ignore:
Timestamp:
11/17/2008 02:25:51 PM (7 weeks ago)
Author:
wd15
Message:

updated flat().all() to all().all() due to differences in versions of numpy

Location:
trunk/fipy/meshes/numMesh
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/fipy/meshes/numMesh/gmshImport.py

    r2822 r2823  
    122122    [0 1 2 3 2 4 2 3 5 4 6 5 7 4 6]] 
    123123    
    124    >>> (mesh._getCellFaceIDs() == [[0, 0, 2, 7, 7, 8, 12, 14], 
    125    ...                             [1, 3, 5, 4, 8, 10, 13, 11], 
    126    ...                             [2, 4, 6, 6, 9, 11, 9, 12]]).flat.all() 
     124   >>> print (mesh._getCellFaceIDs() == [[0, 0, 2, 7, 7, 8, 12, 14], 
     125   ...                                   [1, 3, 5, 4, 8, 10, 13, 11], 
     126   ...                                   [2, 4, 6, 6, 9, 11, 9, 12]]).all().all() 
    127127   True 
    128128    
  • trunk/fipy/meshes/numMesh/mesh.py

    r2822 r2823  
    104104           >>> mesh = Grid2D(nx = 2, ny = 2, dx = 1., dy = 1.) 
    105105 
    106            >>> (mesh._getCellFaceIDs() == [[0, 1, 2, 3], 
    107            ...                             [7, 8, 10, 11], 
    108            ...                             [2, 3, 4, 5], 
    109            ...                             [6, 7, 9, 10]]).flat.all() 
     106           >>> print (mesh._getCellFaceIDs() == [[0, 1, 2, 3], 
     107           ...                                   [7, 8, 10, 11], 
     108           ...                                   [2, 3, 4, 5], 
     109           ...                                   [6, 7, 9, 10]]).all().all() 
    110110           True 
    111111            
    112112           >>> mesh._connectFaces(numerix.nonzero(mesh.getFacesLeft()), numerix.nonzero(mesh.getFacesRight())) 
    113113 
    114            >>> (mesh._getCellFaceIDs() == [[0, 1, 2, 3], 
    115            ...                             [7, 6, 10, 9], 
    116            ...                             [2, 3, 4, 5], 
    117            ...                             [6, 7, 9, 10]]).flat.all() 
     114           >>> print (mesh._getCellFaceIDs() == [[0, 1, 2, 3], 
     115           ...                                   [7, 6, 10, 9], 
     116           ...                                   [2, 3, 4, 5], 
     117           ...                                   [6, 7, 9, 10]]).all().all() 
    118118           True 
    119119 
  • trunk/fipy/meshes/numMesh/periodicGrid2D.py

    r2822 r2823  
    6060        [ 0.5   0.5   0.5   0.5   0.25  0.25  1.    1.    0.5   1.    1.    0.5 ] 
    6161  
    62         >>> (mesh._getCellFaceIDs() == [[0, 1, 2, 3], 
    63         ...                             [7, 6, 10, 9], 
    64         ...                             [2, 3, 0, 1], 
    65         ...                             [6, 7, 9, 10]]).flat.all() 
     62        >>> print (mesh._getCellFaceIDs() == [[0, 1, 2, 3], 
     63        ...                                   [7, 6, 10, 9], 
     64        ...                                   [2, 3, 0, 1], 
     65        ...                                   [6, 7, 9, 10]]).all().all() 
    6666        True 
    6767