Ignore:
Timestamp:
Aug 4, 2008, 12:08:33 PM (16 years ago)
Author:
ole
Message:

Cleaned up in tests and made directories independent on where the test is run from.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/shallow_water/test_data_manager.py

    r5599 r5601  
    2222from anuga.coordinate_transforms.redfearn import degminsec2decimal_degrees
    2323from anuga.abstract_2d_finite_volumes.util import file_function
     24
     25from anuga.utilities.system_tools import get_pathname_from_package
    2426
    2527# This is needed to run the tests of local functions
     
    65506552            compress,zeros,fabs,take,size
    65516553       
    6552         ordering_filename='thinned_bound_order_test.txt'
    6553         testdir = 'urs_test_data'
     6554        # Get path where this test is run
     6555        path = get_pathname_from_package('anuga.shallow_water')       
     6556       
     6557        testdir = os.path.join(path, 'urs_test_data')
     6558        ordering_filename=os.path.join(testdir, 'thinned_bound_order_test.txt')
     6559       
     6560       
    65546561        sources = ['1-z.grd','2-z.grd','3-z.grd']
    65556562       
     
    67596766        # make sts file for combined sources
    67606767        weights = [1., 2., 3.]
    6761         ordering_filename='thinned_bound_order_test.txt'
    6762         testdir = 'urs_test_data'
     6768       
     6769        path = get_pathname_from_package('anuga.shallow_water')       
     6770               
     6771        testdir = os.path.join(path, 'urs_test_data')       
     6772        ordering_filename=os.path.join(testdir, 'thinned_bound_order_test.txt')
     6773
    67636774        urs_filenames = [os.path.join(testdir,'1-z.grd'),
    67646775                         os.path.join(testdir,'2-z.grd'),
Note: See TracChangeset for help on using the changeset viewer.