Skip to content
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

custom metrics as series #215

Merged
merged 1 commit into from
Jun 23, 2023
Merged

custom metrics as series #215

merged 1 commit into from
Jun 23, 2023

Conversation

daniel-caichac-DHI
Copy link
Collaborator

Hi.
I just changed a single line.
All tests still pass.
I am just changing metrics from a numpy array (so just values) to a pandas series. That way, the values are remain the same, but the time index is not lost.
This simple change allows me to calculate, for instance, the Peak Ratio metric, which requires model data, measured data, and time axis.

Copy link
Member

@jsmariegaard jsmariegaard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good - it does not seem to have any negative effects

@jsmariegaard jsmariegaard merged commit b8e0ba1 into main Jun 23, 2023
@jsmariegaard jsmariegaard deleted the metrics_as_series branch June 23, 2023 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants