Changeset 4337


Ignore:
Timestamp:
Mar 29, 2007, 12:02:46 PM (18 years ago)
Author:
ole
Message:

New auto validation passes on Nautilus

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_validation/automated_validation_tests/okushiri_tank_validation/compare_timeseries_with_measures.py

    r4335 r4337  
    7373                   'ch7': 1.230000000000000071e+01,
    7474                   'ch9': 1.315000000000000036e+01}
    75 
    76 # Obsolete
    77 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 
    9875
    9976#-------------------------
     
    171148              %(name, reference_value, computed_value,
    172149                abs(reference_value-computed_value))       
    173     print msg
    174     print 'Allclose:', allclose(reference_value, computed_value, rtol=eps)
    175     #assert allclose(reference_value, computed_value, rtol=eps), msg
     150    #print msg
     151    #print 'Allclose:', allclose(reference_value, computed_value, rtol=eps)
     152    assert allclose(reference_value, computed_value, rtol=eps), msg
    176153   
    177154
     
    193170        model.append(f(t, point_id=k)[0])
    194171
    195 
    196     #FIXME: TRY TO REDUCE THESE TOLERANCES!!!!!
    197 
    198172    # Covariance measure   
    199173    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)
    201175     
    202176    # Difference measures   
    203177    res = sum(abs(observed_timeseries-model))/len(model)
    204178    report_difference('Accumulated difference', res,
    205                       expected_difference[name], 1.0e-3)   
     179                      expected_difference[name], eps)   
    206180
    207181    # Extrema
Note: See TracChangeset for help on using the changeset viewer.