-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Standardized Streamflow Index and Standardized Groundwater level Index #1877
base: main
Are you sure you want to change the base?
Conversation
tests/test_indices.py
Outdated
@@ -751,6 +751,54 @@ def test_standardized_precipitation_evapotranspiration_index( | |||
|
|||
np.testing.assert_allclose(spei.values, values, rtol=0, atol=diff_tol) | |||
|
|||
# reference results: Obtained with R package `standaRdized` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SarahG-579462 @coxipi
I couldn't find any other reference to test against for SSI (same for SGI I think). I could only replicate two conditions out of many. When the values get too far from zero, standaRdized
outputs lots of NaNs and the non-NaNs are far away from us. Also in these replicable values, the offset is somewhat constant.
It looks like the problem is on their side?
Do you think this is still a valuable test then?
I'll also add a couple tests against ourselves.
Co-authored-by: Trevor James Smith <[email protected]>
Co-authored-by: Trevor James Smith <[email protected]>
Co-authored-by: Trevor James Smith <[email protected]>
Co-authored-by: Trevor James Smith <[email protected]>
Where things stand
|
Just an FYI, but some tests are expected to fail until #1889 is merged! |
Pull Request Checklist:
number
) and pull request (:pull:number
) has been addedWhat kind of change does this PR introduce?
Does this PR introduce a breaking change?
No
Other information: