Changeset 2689 for inundation/pyvolution


Ignore:
Timestamp:
Apr 11, 2006, 1:10:37 PM (18 years ago)
Author:
duncan
Message:

fixing depreciated warning messages

Location:
inundation/pyvolution
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • inundation/pyvolution/least_squares.py

    r2683 r2689  
    973973            msg += 'Alternatively, set smoothing parameter alpha to a small '
    974974            msg += 'positive value,\ne.g. 1.0e-3.'
    975             raise msg
     975            raise Exception(msg)
    976976
    977977
     
    12421242                if x is None or y is None:
    12431243                    msg = 'Either point_id or x and y must be specified'
    1244                     raise msg
     1244                    raise Exception(msg)
    12451245            else:
    12461246                if self.interpolation_points is None:
     
    12481248                          'with a list of interpolation points before parameter ' +\
    12491249                          'point_id can be used'
    1250                     raise msg
     1250                    raise Exception(msg)
    12511251
    12521252
    12531253        msg = 'Time interval [%s:%s]' %(self.T[0], self.T[1])
    12541254        msg += ' does not match model time: %s\n' %t
    1255         if t < self.T[0]: raise msg
    1256         if t > self.T[-1]: raise msg
     1255        if t < self.T[0]: raise Exception(msg)
     1256        if t > self.T[-1]: raise Exception(msg)
    12571257
    12581258        oldindex = self.index #Time index
  • inundation/pyvolution/shallow_water.py

    r2648 r2689  
    13101310            msg = 'Force field %s must be either a scalar' %f
    13111311            msg += ' or a vector function'
    1312             raise msg
     1312            raise Exception(msg)
    13131313    return f
    13141314
Note: See TracChangeset for help on using the changeset viewer.