You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
where FA is a subclass of ResamplingIndicator. However, the index reduces the time axis completely, which is not what we would expect from a ResamplingIndicator that exposes a freq argument.
Maybe we should have a new subclass for this type of indicator and rename the freq argument to make it less misleading.
The text was updated successfully, but these errors were encountered:
<!--Please ensure the PR fulfills the following requirements! -->
<!-- If this is your first PR, make sure to add your details to the
AUTHORS.rst! -->
### Pull Request Checklist:
- [x] This PR addresses an already opened issue (for bug fixes /
features)
- This PR fixes#1263
- [ ] Tests for the changes have been added (for bug fixes / features)
- [x] (If applicable) Documentation has been added / updated (for bug
fixes / features)
- [x] CHANGES.rst has been updated (with summary of main changes)
- [x] Link to issue (:issue:`number`) and pull request (:pull:`number`)
has been added
### What kind of change does this PR introduce?
Move around some of the base indicator classes code. Split the missing
values handling from the resampling handling. This way, indicators like
`return_level` can reduce the full time axis and still perform some
missing values handling.
### Does this PR introduce a breaking change?
No, not yet.
### Other information:
@huard@RondeauG, if I am not mistaken, `return_level` and `fit`
currently have missing values handling disabled because it was
impossible with the previous classes to have both this and full
reduction of "time". Now that it is possible, should we activate it ?
Similarly, `stats` had the "Any" missing method forced. Is there a
reason for that ? Here, I removed the argument, meaning it will use
"from_context".
xclim/xclim/indicators/land/_streamflow.py
Line 73 in c8f45a7
where
FA
is a subclass ofResamplingIndicator
. However, the index reduces thetime
axis completely, which is not what we would expect from aResamplingIndicator
that exposes afreq
argument.Maybe we should have a new subclass for this type of indicator and rename the
freq
argument to make it less misleading.The text was updated successfully, but these errors were encountered: