Changeset 3514 for inundation-numpy-branch/pyvolution/util.py
- Timestamp:
- Aug 21, 2006, 4:10:14 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation-numpy-branch/pyvolution/util.py
r2526 r3514 6 6 7 7 8 import utilities.polygon8 import anuga.utilities.polygon 9 9 from warnings import warn 10 10 … … 173 173 from Scientific.IO.NetCDF import NetCDFFile 174 174 from Numeric import array, zeros, Float, alltrue, concatenate, reshape 175 from utilities.numerical_tools import ensure_numeric175 from anuga.utilities.numerical_tools import ensure_numeric 176 176 177 177 #Open NetCDF file … … 401 401 """Temporary Interface to new location""" 402 402 403 import utilities.numerical_tools as NT403 import anuga.utilities.numerical_tools as NT 404 404 405 405 msg = 'angle has moved from util.py. ' 406 msg += 'Please use "from utilities.numerical_tools import angle"'406 msg += 'Please use "from anuga.utilities.numerical_tools import angle"' 407 407 warn(msg, DeprecationWarning) 408 408 … … 412 412 """Temporary Interface to new location""" 413 413 414 import utilities.numerical_tools as NT414 import anuga.utilities.numerical_tools as NT 415 415 416 416 msg = 'anglediff has moved from util.py. ' 417 msg += 'Please use "from utilities.numerical_tools import anglediff"'417 msg += 'Please use "from anuga.utilities.numerical_tools import anglediff"' 418 418 warn(msg, DeprecationWarning) 419 419 … … 424 424 """Temporary Interface to new location""" 425 425 426 import utilities.numerical_tools as NT426 import anuga.utilities.numerical_tools as NT 427 427 428 428 msg = 'mean has moved from util.py. ' 429 msg += 'Please use "from utilities.numerical_tools import mean"'429 msg += 'Please use "from anuga.utilities.numerical_tools import mean"' 430 430 warn(msg, DeprecationWarning) 431 431 … … 436 436 437 437 msg = 'point_on_line has moved from util.py. ' 438 msg += 'Please use "from utilities.polygon import point_on_line"'438 msg += 'Please use "from anuga.utilities.polygon import point_on_line"' 439 439 warn(msg, DeprecationWarning) 440 440 … … 445 445 446 446 print 'inside_polygon has moved from util.py. ', 447 print 'Please use "from utilities.polygon import inside_polygon"'447 print 'Please use "from anuga.utilities.polygon import inside_polygon"' 448 448 449 449 return utilities.polygon.inside_polygon(*args, **kwargs) … … 453 453 454 454 print 'outside_polygon has moved from util.py. ', 455 print 'Please use "from utilities.polygon import outside_polygon"'455 print 'Please use "from anuga.utilities.polygon import outside_polygon"' 456 456 457 457 return utilities.polygon.outside_polygon(*args, **kwargs) … … 462 462 463 463 print 'separate_points_by_polygon has moved from util.py. ', 464 print 'Please use "from utilities.polygon import separate_points_by_polygon"'464 print 'Please use "from anuga.utilities.polygon import separate_points_by_polygon"' 465 465 466 466 return utilities.polygon.separate_points_by_polygon(*args, **kwargs) … … 472 472 473 473 print 'read_polygon has moved from util.py. ', 474 print 'Please use "from utilities.polygon import read_polygon"'474 print 'Please use "from anuga.utilities.polygon import read_polygon"' 475 475 476 476 return utilities.polygon.read_polygon(*args, **kwargs) … … 481 481 482 482 print 'populate_polygon has moved from util.py. ', 483 print 'Please use "from utilities.polygon import populate_polygon"'483 print 'Please use "from anuga.utilities.polygon import populate_polygon"' 484 484 485 485 return utilities.polygon.populate_polygon(*args, **kwargs)
Note: See TracChangeset
for help on using the changeset viewer.