Changeset 3019 for inundation/fit_interpolate
- Timestamp:
- May 30, 2006, 3:19:30 PM (19 years ago)
- Location:
- inundation/fit_interpolate
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/fit_interpolate/interpolate.py
r3018 r3019 237 237 if verbose and len(self.outside_poly_indices) >0: 238 238 print '\n WARNING: Points outside mesh boundary. \n' 239 # Since you can block, throw a warning, not an error. 240 if verbose and 0 == len(self.inside_poly_indices): 241 print '\n WARNING: No points within the mesh! \n' 242 239 243 m = self.mesh.coordinates.shape[0] #Nbr of basis functions (1/vertex) 240 244 n = point_coordinates.shape[0] #Nbr of data points -
inundation/fit_interpolate/test_interpolate.py
r3018 r3019 157 157 158 158 def test_datapoints_at_vertices(self): 159 """Test that data points coinciding with vertices yield a diagonal matrix160 """159 #Test that data points coinciding with vertices yield a diagonal matrix 160 161 161 162 162 a = [0.0, 0.0] … … 177 177 178 178 def test_datapoints_on_edge_midpoints(self): 179 """Try datapoints midway on edges -180 each point should affect two matrix entries equally181 """179 #Try datapoints midway on edges - 180 #each point should affect two matrix entries equally 181 182 182 183 183 a = [0.0, 0.0] … … 197 197 198 198 def test_datapoints_on_edges(self): 199 """Try datapoints on edges -200 each point should affect two matrix entries in proportion201 """199 #Try datapoints on edges - 200 #each point should affect two matrix entries in proportion 201 202 202 203 203 a = [0.0, 0.0] … … 219 219 220 220 def test_arbitrary_datapoints(self): 221 """Try arbitrary datapoints222 """221 #Try arbitrary datapoints 222 223 223 224 224 from Numeric import sum … … 238 238 239 239 def test_arbitrary_datapoints_some_outside(self): 240 """Try arbitrary datapoints one outside the triangle.241 That one should be ignored242 """240 #Try arbitrary datapoints one outside the triangle. 241 #That one should be ignored 242 243 243 244 244 from Numeric import sum … … 435 435 436 436 def test_interpolate_attributes_to_pointsIII(self): 437 """Test linear interpolation of known values at vertices to438 new points inside a triangle439 """437 #Test linear interpolation of known values at vertices to 438 #new points inside a triangle 439 440 440 a = [0.0, 0.0] 441 441 b = [0.0, 5.0] … … 496 496 497 497 def test_interpolate_point_outside_of_mesh(self): 498 """Test linear interpolation of known values at vertices to499 new points inside a triangle500 """498 #Test linear interpolation of known values at vertices to 499 #new points inside a triangle 500 501 501 a = [0.0, 0.0] 502 502 b = [0.0, 5.0] … … 1145 1145 1146 1146 def test_interpolation_function_time(self): 1147 """Test a long time series with an error in it (this did cause an1148 error once)1149 """1147 #Test a long time series with an error in it (this did cause an 1148 #error once) 1149 1150 1150 1151 1151 time = array(\
Note: See TracChangeset
for help on using the changeset viewer.