Skip to content

Commit

Permalink
CODS testing turn on verbose flag
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-springer committed Jun 25, 2024
1 parent c6bf396 commit 18e10f7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rdtools/test/soiling_cods_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ def test_soiling_cods(cods_normalized_daily):
''' Test the CODS algorithm with fixed test case and 16 repetitions'''
reps = 16
np.random.seed(1977)
sr, sr_ci, deg, deg_ci, result_df = soiling.soiling_cods(cods_normalized_daily, reps=reps)
sr, sr_ci, deg, deg_ci, result_df = soiling.soiling_cods(cods_normalized_daily,
reps=reps,
verbose=True)
assert 0.962207 == pytest.approx(sr, abs=0.5), \
'Soiling ratio different from expected value'
assert np.array([0.96662419, 0.95692131]) == pytest.approx(sr_ci, abs=0.5), \
Expand Down

0 comments on commit 18e10f7

Please sign in to comment.