Ignore:
Timestamp:
Nov 6, 2008, 3:32:23 PM (16 years ago)
Author:
rwilson
Message:

NumPy? conversion.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source_numpy_conversion/anuga/utilities/test_quad.py

    r5889 r5902  
    11import unittest
    2 from numpy import array, allclose
     2##import numpy
    33
    44from quad import Cell, build_quadtree
     
    236236                     [ 0.,  -1.]]
    237237                     
    238         # assert allclose(array(results),[[[ 2.,  1.],
     238        # assert numpy.allclose(numpy.array(results),[[[ 2.,  1.],
    239239        #[ 4.,  1.], [ 4.,  4.]], [[ 4.,  1.],[ 5.,  4.],[ 4.,  4.]]] )
    240240        results = Q.search(5,4.)
     
    253253                     [ 5.,  4.],
    254254                     [ 4.,  4.]]
    255         #assert allclose(array(results),[[[ 2.,  1.],[ 4.,  1.], [ 4.,  4.]]
     255        #assert numpy.allclose(numpy.array(results),[[[ 2.,  1.],[ 4.,  1.], [ 4.,  4.]]
    256256         #                               ,[[ 2.,  1.],[ 4.,  4.], [ 2.,  4.]],
    257257        #[[ 4.,  1.],  [ 5.,  4.], [ 4.,  4.]],
Note: See TracChangeset for help on using the changeset viewer.