Ignore:
Timestamp:
Mar 3, 2009, 1:16:59 PM (14 years ago)
Author:
ole
Message:

Fixed bug in ensure_numeric where input was always copied irrespective of type.

Then fixed snowball bugs by copying input to ensure_numeric where appropriate.

Thanks Ross

File:
1 edited

Legend:

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

    r6166 r6438  
    14601460    """
    14611461
     1462    import copy
    14621463    # Input check
    14631464    if isinstance(points, basestring):
     
    14701471        assert geo_reference == None, msg
    14711472    else:
    1472         points = ensure_numeric(points, num.Float)
     1473        points = ensure_numeric(copy.copy(points), num.Float)
    14731474
    14741475    # Sort of geo_reference and convert points
     
    15071508    """
    15081509
     1510    import copy
    15091511    # Input check
    15101512    if isinstance(points, Geospatial_data):
Note: See TracChangeset for help on using the changeset viewer.