Ignore:
Timestamp:
Mar 17, 2009, 4:02:54 PM (16 years ago)
Author:
rwilson
Message:

Revert back to 6481, prior to auto-merge of trunk and numpy branch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/numpy/anuga/fit_interpolate/fit.py

    r6517 r6533  
    310310                assert flag is True, msg               
    311311               
    312                 # FIXME(Ole): This is the message referred to in ticket:314
    313312                minx = min(self.mesh_boundary_polygon[:,0])
    314313                maxx = max(self.mesh_boundary_polygon[:,0])               
     
    318317                msg += 'Mesh boundary extent is (%.f, %.f), (%.f, %.f)'\
    319318                    % (minx, maxx, miny, maxy)
    320                 raise RuntimeError, msg
    321319               
    322320
     
    377375                self.build_fit_subset(points, z, verbose=verbose)
    378376
    379                 # FIXME(Ole): I thought this test would make sense here
    380                 # See test_fitting_example_that_crashed_2 in test_shallow_water_domain.py
    381                 # Committed 11 March 2009
    382                 msg = 'Matrix AtA was not built'
    383                 assert self.AtA is not None, msg
    384                
    385                 #print 'Matrix was built OK'
    386 
    387377               
    388378            point_coordinates = None
     
    392382        if point_coordinates is None:
    393383            if verbose: print 'Warning: no data points in fit'
    394             msg = 'No interpolation matrix.'
    395             assert self.AtA is not None, msg
    396             assert self.Atz is not None
     384            #assert self.AtA != None, 'no interpolation matrix'
     385            #assert self.Atz != None
     386            assert not self.AtA is None, 'no interpolation matrix'
     387            assert not self.Atz is None
    397388           
    398389            # FIXME (DSG) - do  a message
Note: See TracChangeset for help on using the changeset viewer.