Changeset 6438
- Timestamp:
- Mar 3, 2009, 1:16:59 PM (16 years ago)
- Location:
- anuga_core/source/anuga
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/coordinate_transforms/geo_reference.py
r6149 r6438 7 7 #and unit test 8 8 9 9 10 import types, sys 11 import copy 10 12 from anuga.utilities.numerical_tools import ensure_numeric 11 13 from anuga.utilities.anuga_exceptions import ANUGAError, TitleError, ParsingError, \ … … 192 194 If the points do not have a geo ref, assume 'absolute' values 193 195 """ 194 196 import copy 197 195 198 is_list = False 196 199 if type(points) == types.ListType: 197 200 is_list = True 198 201 199 points = ensure_numeric( points, num.Float)202 points = ensure_numeric(copy.copy(points), num.Float) 200 203 201 204 if len(points.shape) == 1: … … 256 259 is_list = True 257 260 258 points = ensure_numeric( points, num.Float)261 points = ensure_numeric(copy.copy(points), num.Float) 259 262 if len(points.shape) == 1: 260 263 #One point has been passed -
anuga_core/source/anuga/geospatial_data/geospatial_data.py
r6166 r6438 1460 1460 """ 1461 1461 1462 import copy 1462 1463 # Input check 1463 1464 if isinstance(points, basestring): … … 1470 1471 assert geo_reference == None, msg 1471 1472 else: 1472 points = ensure_numeric( points, num.Float)1473 points = ensure_numeric(copy.copy(points), num.Float) 1473 1474 1474 1475 # Sort of geo_reference and convert points … … 1507 1508 """ 1508 1509 1510 import copy 1509 1511 # Input check 1510 1512 if isinstance(points, Geospatial_data): -
anuga_core/source/anuga/utilities/numerical_tools.py
r6436 r6438 254 254 else: 255 255 if type(A) == num.ArrayType: 256 if A.typecode == typecode:256 if A.typecode() == typecode: 257 257 return A 258 258 else:
Note: See TracChangeset
for help on using the changeset viewer.