Changeset 6405


Ignore:
Timestamp:
Feb 24, 2009, 6:30:34 PM (16 years ago)
Author:
ole
Message:

Added extra check after each block in fit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/fit_interpolate/fit.py

    r6252 r6405  
    372372                self.build_fit_subset(points, z, verbose=verbose)
    373373
     374                msg = 'Matrix AtA was not built'
     375                assert self.AtA is not None, msg
     376               
     377                #print 'Matrix was built OK'
     378
    374379               
    375380            point_coordinates = None
     
    379384        if point_coordinates is None:
    380385            if verbose: print 'Warning: no data points in fit'
    381             assert self.AtA <> None, 'no interpolation matrix'
    382             assert self.Atz <> None
     386            msg = 'No interpolation matrix'
     387            assert self.AtA is not None, msg
     388            assert self.Atz is not None
    383389           
    384390            # FIXME (DSG) - do  a message
Note: See TracChangeset for help on using the changeset viewer.