Changeset 4337
- Timestamp:
- Mar 29, 2007, 12:02:46 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_validation/automated_validation_tests/okushiri_tank_validation/compare_timeseries_with_measures.py
r4335 r4337 73 73 'ch7': 1.230000000000000071e+01, 74 74 'ch9': 1.315000000000000036e+01} 75 76 # Obsolete77 expected_maximum_diff = {'Boundary': 7.166795837686146253e-05,78 'ch5': 1.326867779957524585e-03,79 'ch7': 3.582696745840288632e-04,80 'ch9': 2.212919173501755321e-03}81 82 expected_minimum_diff = {'Boundary': 1.335627610594206094e-04,83 'ch5': 9.334970576141445042e-04,84 'ch7': 4.523664511720201960e-03,85 'ch9': 3.427581218447350343e-03}86 87 expected_argmax_timelag = {'Boundary': 3.000000000000007105e-01,88 'ch5': 4.999999999999715783e-02,89 'ch7': 0.000000000000000000e+00,90 'ch9': 0.000000000000000000e+00}91 92 expected_argmin_timelag = {'Boundary': 2.500000000000000000e-01,93 'ch5': 7.999999999999989342e-01,94 'ch7': 2.150000000000000355e+00,95 'ch9': 1.150000000000000355e+00}96 97 98 75 99 76 #------------------------- … … 171 148 %(name, reference_value, computed_value, 172 149 abs(reference_value-computed_value)) 173 print msg174 print 'Allclose:', allclose(reference_value, computed_value, rtol=eps)175 #assert allclose(reference_value, computed_value, rtol=eps), msg150 #print msg 151 #print 'Allclose:', allclose(reference_value, computed_value, rtol=eps) 152 assert allclose(reference_value, computed_value, rtol=eps), msg 176 153 177 154 … … 193 170 model.append(f(t, point_id=k)[0]) 194 171 195 196 #FIXME: TRY TO REDUCE THESE TOLERANCES!!!!!197 198 172 # Covariance measure 199 173 res = cov(observed_timeseries, model) 200 report_difference('Covariance', res, expected_covariance[name], 1.0e-3)174 report_difference('Covariance', res, expected_covariance[name], eps) 201 175 202 176 # Difference measures 203 177 res = sum(abs(observed_timeseries-model))/len(model) 204 178 report_difference('Accumulated difference', res, 205 expected_difference[name], 1.0e-3)179 expected_difference[name], eps) 206 180 207 181 # Extrema
Note: See TracChangeset
for help on using the changeset viewer.