-
Notifications
You must be signed in to change notification settings - Fork 32
New score - NSE #815
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
Merged
Merged
New score - NSE #815
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
2 tasks
nikeethr
commented
Feb 17, 2025
nikeethr
commented
Feb 17, 2025
nikeethr
commented
Feb 17, 2025
nikeethr
commented
Feb 25, 2025
nikeethr
commented
Feb 25, 2025
nikeethr
commented
Feb 25, 2025
nikeethr
commented
Feb 25, 2025
nikeethr
commented
Feb 25, 2025
nikeethr
commented
Feb 25, 2025
nikeethr
commented
Feb 25, 2025
nikeethr
commented
Feb 25, 2025
nikeethr
commented
Feb 25, 2025
nikeethr
commented
Feb 25, 2025
nikeethr
commented
Feb 25, 2025
This comment was marked as resolved.
This comment was marked as resolved.
nikeethr
commented
Feb 27, 2025
This was referenced Feb 28, 2025
nikeethr
commented
Mar 4, 2025
nikeethr
commented
Mar 4, 2025
nikeethr
commented
Mar 4, 2025
nikeethr
commented
Mar 4, 2025
nikeethr
commented
Mar 4, 2025
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
durgals
reviewed
Mar 28, 2025
durgals
reviewed
Mar 30, 2025
durgals
reviewed
Mar 31, 2025
durgals
reviewed
Mar 31, 2025
This comment was marked as resolved.
This comment was marked as resolved.
durgals
reviewed
Mar 31, 2025
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Co-authored-by: durgals <[email protected]> Signed-off-by: Nikeeth Ramanathan <[email protected]>
Co-authored-by: durgals <[email protected]> Signed-off-by: Nikeeth Ramanathan <[email protected]>
Co-authored-by: durgals <[email protected]> Signed-off-by: Nikeeth Ramanathan <[email protected]>
This comment was marked as resolved.
This comment was marked as resolved.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
note: some minor adjustments and finishing touches are still being worked on, but the core functionality is ready for review
Description
Revisit implementation of NSE in #217 which is now stale. Details in issue: #814
Review
Science Review
Apart from the general guidelines, specifically it would be good to validate the following:
tests/continuous/test_nse.py:TestNseScore
(note: just the math in the docstring)src/tutorials/NSE.ipynb
src/scores/continuous/nse_impl.py:NseScore
src/scores/continuous/standard_impl.py:nse
Software changes
(NOTE: any major structural changes have now been offloaded to #830 as such I'm removing some information from this PR description - so that they don't cause confusion...)
check_weights
function: parially-addresses Add a UserWarning (or maybe add an exception) for negative weights #829nse
score inscores.continuous.nse_impl.py:nse
nse_impl
also contains some checks that are contained in aNseUtils
namespace. It is likely that these can be abstracted to apply to all Hydro metrics (in the first instance) and for all scores (eventually). (NOTE: out of scope for this PR - will be covered in put hydro scores inhydro_impl
or similar #837)nse_impl
and most other scores is that the inner logic ONLY works withxr.Dataset
as an intentionally imposed constraint. This simplifies any checking and compatibility of internal logic.nse_impl
is incompatible with dataarrays, INSTEAD...XarrayLike
types to consolidatexr.DataArray
andxr.Dataset
#830Misc:
support formoved to Addpixi
environments inpyproject.toml
pixi
to pyproject.toml #834Checklist
Development (done)
reduce_dims
,preserve_dims
, andweights
args.Public Docstring (done)
Private Docstring (done)
Unit Test (done)
xr.DataArrays
andxr.Datasets
.add_note
- doesn't exist in 3.10.Tutorial (mostly done)
API Documentation