Ignore:
Timestamp:
Aug 21, 2006, 4:10:14 PM (18 years ago)
Author:
duncan
Message:

Hi all,
I'm doing a change in the anuga structure, moving the code to

\anuga_core\source\anuga

After you have done an svn update, the PYTHONPATH has to be changed to;
PYTHONPATH = anuga_core/source/

This is part of changes required to make installation of anuga quicker and reducing the size of our sandpits.

If any imports are broken, try fixing them. With adding anuga. to them for example. If this seems to have really broken things, email/phone me.

Cheers
Duncan

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation-numpy-branch/pyvolution/util.py

    r2526 r3514  
    66
    77
    8 import utilities.polygon
     8import anuga.utilities.polygon
    99from warnings import warn
    1010
     
    173173    from Scientific.IO.NetCDF import NetCDFFile
    174174    from Numeric import array, zeros, Float, alltrue, concatenate, reshape
    175     from utilities.numerical_tools import ensure_numeric   
     175    from anuga.utilities.numerical_tools import ensure_numeric   
    176176
    177177    #Open NetCDF file
     
    401401    """Temporary Interface to new location"""
    402402
    403     import utilities.numerical_tools as NT     
     403    import anuga.utilities.numerical_tools as NT       
    404404   
    405405    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"'
    407407    warn(msg, DeprecationWarning)
    408408
     
    412412    """Temporary Interface to new location"""
    413413
    414     import utilities.numerical_tools as NT
     414    import anuga.utilities.numerical_tools as NT
    415415   
    416416    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"'
    418418    warn(msg, DeprecationWarning)
    419419
     
    424424    """Temporary Interface to new location"""
    425425
    426     import utilities.numerical_tools as NT   
     426    import anuga.utilities.numerical_tools as NT   
    427427   
    428428    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"'
    430430    warn(msg, DeprecationWarning)
    431431
     
    436436
    437437    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"'
    439439    warn(msg, DeprecationWarning)
    440440
     
    445445
    446446    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"'
    448448
    449449    return utilities.polygon.inside_polygon(*args, **kwargs)   
     
    453453
    454454    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"'
    456456
    457457    return utilities.polygon.outside_polygon(*args, **kwargs)   
     
    462462
    463463    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"'
    465465
    466466    return utilities.polygon.separate_points_by_polygon(*args, **kwargs)   
     
    472472
    473473    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"'
    475475
    476476    return utilities.polygon.read_polygon(*args, **kwargs)   
     
    481481
    482482    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"'
    484484
    485485    return utilities.polygon.populate_polygon(*args, **kwargs)   
Note: See TracChangeset for help on using the changeset viewer.