Changeset 2689
- Timestamp:
- Apr 11, 2006, 1:10:37 PM (19 years ago)
- Location:
- inundation/pyvolution
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/pyvolution/least_squares.py
r2683 r2689 973 973 msg += 'Alternatively, set smoothing parameter alpha to a small ' 974 974 msg += 'positive value,\ne.g. 1.0e-3.' 975 raise msg975 raise Exception(msg) 976 976 977 977 … … 1242 1242 if x is None or y is None: 1243 1243 msg = 'Either point_id or x and y must be specified' 1244 raise msg1244 raise Exception(msg) 1245 1245 else: 1246 1246 if self.interpolation_points is None: … … 1248 1248 'with a list of interpolation points before parameter ' +\ 1249 1249 'point_id can be used' 1250 raise msg1250 raise Exception(msg) 1251 1251 1252 1252 1253 1253 msg = 'Time interval [%s:%s]' %(self.T[0], self.T[1]) 1254 1254 msg += ' does not match model time: %s\n' %t 1255 if t < self.T[0]: raise msg1256 if t > self.T[-1]: raise msg1255 if t < self.T[0]: raise Exception(msg) 1256 if t > self.T[-1]: raise Exception(msg) 1257 1257 1258 1258 oldindex = self.index #Time index -
inundation/pyvolution/shallow_water.py
r2648 r2689 1310 1310 msg = 'Force field %s must be either a scalar' %f 1311 1311 msg += ' or a vector function' 1312 raise msg1312 raise Exception(msg) 1313 1313 return f 1314 1314
Note: See TracChangeset
for help on using the changeset viewer.