Changeset 4334
- Timestamp:
- Mar 28, 2007, 6:21:02 PM (18 years ago)
- Location:
- anuga_validation/automated_validation_tests/okushiri_tank_validation
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_validation/automated_validation_tests/okushiri_tank_validation/compare_timeseries_with_measures.py
r4332 r4334 44 44 45 45 # Expected values 46 expected_covariance = {'Boundary': 5.269749049737429159e-05, 47 'ch5': 1.163749077455013324e-04, 48 'ch7': 1.126985405540967749e-04, 49 'ch9': 1.250280909578863607e-04} 50 51 expected_difference = {'Boundary': 8.337114775060755880e-04, 52 'ch5': 3.385911115917152742e-03, 53 'ch7': 2.857119198201266575e-03, 54 'ch9': 3.247257369996859894e-03} 55 56 57 58 expected_maximum = {'Boundary': 0.0161886, 59 'ch5': 0.03694, 60 'ch7': 0.03895, 61 'ch9': 0.04535} 62 63 expected_minimum = {'Boundary': -0.0115097, 64 'ch5': -0.00896, 65 'ch7': -0.00725, 66 'ch9': -0.00255} 67 68 expected_argmax = {'Boundary': 12.25, 69 'ch5': 18.35, 70 'ch7': 17.0, 71 'ch9': 16.85} 72 73 expected_argmin = {'Boundary': 20.4, 74 'ch5': 13.8, 75 'ch7': 14.4, 76 'ch9': 14.35} 46 expected_covariance = {'Boundary': 5.269569575007607815e-05, 47 'ch5': 1.166277999581819919e-04, 48 'ch7': 1.127136457890861503e-04, 49 'ch9': 1.250659477418482129e-04} 50 51 expected_difference = {'Boundary': 8.350712673810733924e-04, 52 'ch5': 3.405426180525532483e-03, 53 'ch7': 2.852870417368218517e-03, 54 'ch9': 3.248778982037564891e-03} 55 56 expected_maximum = {'Boundary': 1.611749508386188523e-02, 57 'ch5': 3.551308418158714147e-02, 58 'ch7': 3.858418457126511908e-02, 59 'ch9': 4.317962986578308127e-02} 60 61 expected_minimum = {'Boundary': -1.164547474575844919e-02, 62 'ch5': -8.664439185502026408e-03, 63 'ch7': -2.726335488279797541e-03, 64 'ch9': -5.977581218447349659e-03} 65 66 expected_argmax = {'Boundary': 1.255000000000000071e+01, 67 'ch5': 1.839999999999999858e+01, 68 'ch7': 1.700000000000000000e+01, 69 'ch9': 1.685000000000000142e+01} 70 71 expected_argmin = {'Boundary': 2.064999999999999858e+01, 72 'ch5': 1.459999999999999964e+01, 73 'ch7': 1.230000000000000071e+01, 74 'ch9': 1.315000000000000036e+01} 77 75 78 76 # Obsolete … … 173 171 %(name, reference_value, computed_value, 174 172 abs(reference_value-computed_value)) 175 # 173 #print msg 176 174 177 175 assert allclose(reference_value, computed_value), msg … … 205 203 206 204 # Extrema 207 res = max( observed_timeseries)205 res = max(model) 208 206 report_difference('Maximum', res, expected_maximum[name], eps) 209 207 210 res = min( observed_timeseries)208 res = min(model) 211 209 report_difference('Minimum', res, expected_minimum[name], eps) 212 210 213 211 # Locations of extrema 214 i0 = argmax(observed_timeseries)215 #i1 = argmax(model)216 res = reference_time[i 0]212 #i0 = argmax(observed_timeseries) 213 i1 = argmax(model) 214 res = reference_time[i1] 217 215 report_difference('Location of maximum', res, expected_argmax[name], eps) 218 216 219 217 220 i0 = argmin(observed_timeseries)221 #i1 = argmin(model)222 res = reference_time[i 0]218 #i0 = argmin(observed_timeseries) 219 i1 = argmin(model) 220 res = reference_time[i1] 223 221 report_difference('Location of minimum', res, expected_argmin[name], eps) 224 222 -
anuga_validation/automated_validation_tests/okushiri_tank_validation/run_okushiri.py
r4262 r4334 58 58 domain.set_maximum_allowed_speed(0.1) # Allow a little runoff (0.1 is OK) 59 59 60 domain.H0=060 # domain.H0=0 61 61 62 62 # Try this, (and comment H0=0 out) but the comparison may have to
Note: See TracChangeset
for help on using the changeset viewer.