Changeset 4184


Ignore:
Timestamp:
Jan 19, 2007, 4:26:57 PM (18 years ago)
Author:
duncan
Message:

small fixes

Location:
anuga_core/source/anuga
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/coordinate_transforms/test_geo_reference.py

    r3134 r4184  
    88from geo_reference import *
    99from Numeric import allclose,array
     10
     11# Ignore these warnings, since we still want to test .xya code.
     12import warnings
     13warnings.filterwarnings(action = 'ignore',
     14                        message='.xya format is deprecated.  Please use .txt.',
     15                        category=DeprecationWarning)
     16
     17warnings.filterwarnings(action = 'ignore',
     18                        message='Text file format is moving to comma se',
     19                        category=DeprecationWarning)
     20
    1021
    1122class geo_referenceTestCase(unittest.TestCase):
  • anuga_core/source/anuga/fit_interpolate/fit.py

    r4175 r4184  
    261261        #      self.mesh.get_boundary_polygon()
    262262
    263         # Why are these global?
    264         self.inside_poly_indices, self.outside_poly_indices  = \
     263        inside_poly_indices, outside_poly_indices  = \
    265264                     in_and_outside_polygon(point_coordinates,
    266265                                            self.mesh.get_boundary_polygon(),
     
    270269
    271270       
    272         n = len(self.inside_poly_indices)
     271        n = len(inside_poly_indices)
    273272        if verbose: print 'Building fitting matrix from %d points' %n       
    274273        #Compute matrix elements for points inside the mesh
    275         for k, i in enumerate(self.inside_poly_indices):
     274        for k, i in enumerate(inside_poly_indices):
    276275            #For each data_coordinate point
    277276            if verbose and k%((n+10)/10)==0: print 'Doing %d of %d' %(k, n)
  • anuga_core/source/anuga/fit_interpolate/test_fit.py

    r4175 r4184  
    254254
    255255
    256         fileName = tempfile.mktemp(".xya")
     256        fileName = tempfile.mktemp(".txt")
    257257        file = open(fileName,"w")
    258         file.write(" elevation \n\
     258        file.write(" x, y, elevation \n\
    259259-2.0, 2.0, 0.\n\
    260260-1.0, 1.0, 0.\n\
     
    270270 3.0,  1.0 , 4.\n")
    271271        file.close()
    272 
     272        print "fileName",fileName
    273273        geo = Geospatial_data(fileName)
    274274        fileName_pts = tempfile.mktemp(".pts")
Note: See TracChangeset for help on using the changeset viewer.