Skip to content

Commit da71d88

Browse files
Prepare release (#35)
1 parent 2299c1d commit da71d88

File tree

4 files changed

+21
-5
lines changed

4 files changed

+21
-5
lines changed

Diff for: CHANGELOG.md

+15
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,25 @@
44

55
[Full Changelog](https://github.com/btschwertfeger/python-cmethods/compare/v1.0.0...HEAD)
66

7+
**Breaking changes:**
8+
9+
- Split Quantile Mapping into Quantile Mapping and Detrended Quantile Mapping [\#34](https://github.com/btschwertfeger/python-cmethods/pull/34) ([btschwertfeger](https://github.com/btschwertfeger))
10+
711
**Fixed bugs:**
812

13+
- Multiplicative Quantile Delta Mapping is not applying scaling where the delta is infinite [\#32](https://github.com/btschwertfeger/python-cmethods/issues/32)
14+
- Fixed bug where division lead to nan or inf values [\#33](https://github.com/btschwertfeger/python-cmethods/pull/33) ([btschwertfeger](https://github.com/btschwertfeger))
915
- Fixed PyPI repository URL [\#16](https://github.com/btschwertfeger/python-cmethods/pull/16) ([btschwertfeger](https://github.com/btschwertfeger))
1016

17+
**Closed issues:**
18+
19+
- Create a changelog [\#19](https://github.com/btschwertfeger/python-cmethods/issues/19)
20+
21+
**Merged pull requests:**
22+
23+
- Create a Changelog [\#21](https://github.com/btschwertfeger/python-cmethods/pull/21) ([btschwertfeger](https://github.com/btschwertfeger))
24+
- Extended the description of quantile mapping with text and images [\#20](https://github.com/btschwertfeger/python-cmethods/pull/20) ([btschwertfeger](https://github.com/btschwertfeger))
25+
1126
## [v1.0.0](https://github.com/btschwertfeger/python-cmethods/tree/v1.0.0) (2023-04-10)
1227

1328
[Full Changelog](https://github.com/btschwertfeger/python-cmethods/compare/v0.6.3...v1.0.0)

Diff for: Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pre-commit:
4747
##
4848
changelog:
4949
docker run -it --rm \
50-
-v "$(pwd)":/usr/local/src/python-cmethods \
50+
-v "$(PWD)":/usr/local/src/your-app/ \
5151
githubchangeloggenerator/github-changelog-generator \
5252
-u btschwertfeger \
5353
-p python-cmethods \

Diff for: cmethods/__init__.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,8 @@ def detrended_quantile_mapping(
881881
Precipitation by Quantile Mapping: How Well Do Methods Preserve Changes in Quantiles
882882
and Extremes?"* (https://doi.org/10.1175/JCLI-D-14-00754.1).
883883
884-
In the following the equations of Alex J. Cannon (2015) are shown and explained (without detrending):
884+
In the following the equations of Alex J. Cannon (2015) are shown (without detrending; see QM
885+
for explainations):
885886
886887
**Additive**:
887888
@@ -1104,7 +1105,7 @@ def quantile_delta_mapping(
11041105
.. math::
11051106
11061107
\Delta(i) & = \frac{ F^{-1}_{sim,p}\left[\varepsilon(i)\right] }{ F^{-1}_{sim,h}\left[\varepsilon(i)\right] } \\[1pt]
1107-
& = \frac{ X_{sim,p}(i) }{ F^{-1}_{sim,h}\left\{F^_{sim,p}\left[X_{sim,p}(i)\right]\right\} }
1108+
& = \frac{ X_{sim,p}(i) }{ F^{-1}_{sim,h}\left\{F_{sim,p}\left[X_{sim,p}(i)\right]\right\} }
11081109
11091110
11101111
**(2.4)** The relative change between the modeled data of the control and scenario period is than
@@ -1201,7 +1202,7 @@ def ensure_devidable(
12011202
) -> np.array:
12021203
"""
12031204
Ensures that the arrays can be devided. The numerator will be multiplied by
1204-
the maximum scaling factor of the CMethods class.
1205+
the maximum scaling factor of the CMethods class if division by zero.
12051206
12061207
:param numerator: Numerator to use
12071208
:type numerator: np.array

Diff for: docs/src/license.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
License
55
=======
66

7-
.. include:: ../../../LICENSE
7+
.. include:: ../../LICENSE

0 commit comments

Comments
 (0)