Ignore:
Timestamp:
Jun 17, 2010, 5:34:13 PM (13 years ago)
Author:
steve
Message:

Changing for loop to numpy.where

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/development/2010-projects/anuga_1d/test_all.py

    r7840 r7855  
    2323
    2424# Directories that should not be searched for test files.
    25 exclude_dirs = ['channel',    # Special requirements
    26                 '.svn',       # subversion
    27                 'props', 'wcprops', 'prop-base', 'text-base', 'tmp']
     25exclude_dirs = ['channel',  '.svn']
     26               
    2827
    2928
     
    178177# @brief Check that the environment is sane.
    179178# @note Stops here if there is an error.
    180 def check_anuga_import():
     179def check_anuga_1d_import():
    181180    try:
    182181        # importing something that loads quickly
    183         import anuga.anuga_exceptions
     182        import anuga_1d.config
    184183    except ImportError:
    185         print "Python cannot import ANUGA module."
     184        print "Python cannot import ANUGA_1D module."
    186185        print "Check you have followed all steps of its installation."
    187186        import sys
     
    190189
    191190if __name__ == '__main__':
    192     check_anuga_import()
     191    check_anuga_1d_import()
     192
     193    print 'test-all'
    193194
    194195    if len(sys.argv) > 1 and sys.argv[1][0].upper() == 'V':
Note: See TracChangeset for help on using the changeset viewer.