Ignore:
Timestamp:
Jul 17, 2008, 10:57:41 PM (14 years ago)
Author:
ole
Message:

Deprecated 'edges' as an option for location in set_values.
Validation tests pass as well as all unit tests except for two references to
this functionality.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/abstract_2d_finite_volumes/test_quantity.py

    r5519 r5521  
    253253
    254254
    255         #Test default
     255        # Test default
    256256        quantity.set_values([[1,2,3], [5,5,5], [0,0,9], [-6, 3, 3]])
    257257        assert allclose(quantity.vertex_values,
     
    263263                                               [3.0, -1.5, -1.5]])
    264264
    265         #Test centroids
     265        # Test centroids
    266266        quantity.set_values([1,2,3,4], location = 'centroids')
    267267        assert allclose(quantity.centroid_values, [1., 2., 3., 4.]) #Centroid
    268268
    269         #Test edges
    270         quantity.set_values([[1,2,3], [5,5,5], [0,0,9], [-6, 3, 3]],
    271                             location = 'edges')
    272         assert allclose(quantity.edge_values,
    273                         [[1,2,3], [5,5,5], [0,0,9], [-6, 3, 3]])
    274 
    275         #Test exceptions
     269        # Test exceptions
    276270        try:
    277271            quantity.set_values([[1,2,3], [5,5,5], [0,0,9], [-6, 3, 3]],
     
    306300        quantity.set_values(2.0, location = 'centroids')
    307301        assert allclose(quantity.centroid_values, [2, 2, 2, 2])
    308 
    309         quantity.set_values(3.0, location = 'edges')
    310         assert allclose(quantity.edge_values, [[3, 3, 3],
    311                                                [3, 3, 3],
    312                                                [3, 3, 3],
    313                                                [3, 3, 3]])
    314302
    315303
Note: See TracChangeset for help on using the changeset viewer.