Skip to content

Commit

Permalink
Improve docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
dnerini committed Mar 25, 2019
1 parent ed0e8b3 commit 70dcd09
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 12 deletions.
2 changes: 1 addition & 1 deletion pysteps/verification/detcatscores.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def det_cat_fct(pred, obs, thr, scores="", axis=None):
See also
--------
pysteps.verification.detcontscores
pysteps.verification.detcontscores.det_cont_fct
"""
Expand Down
15 changes: 9 additions & 6 deletions pysteps/verification/detcontscores.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,9 @@ def det_cont_fct(pred, obs, scores="", axis=None, conditioning=None):
| scatter* | half the distance between the 16% and 84% percentiles |
| | of the weighted cumulative error distribution, |
| | where error = dB(pred/obs), |
| | as in `Germann et al. (2006)`_ |
| | as in Germann et al. (2006) |
+------------+--------------------------------------------------------+
.. _`Germann et al. (2006)`:https://doi.org/10.1256/qj.05.190
axis : {int, tuple of int, None}, optional
Axis or axes along which a score is integrated. The default, axis=None,
will integrate all of the elements of the input arrays.\n
Expand All @@ -90,14 +88,19 @@ def det_cont_fct(pred, obs, scores="", axis=None, conditioning=None):
Note
----
Score names denoted by * can only be computed offline.
Score names denoted by * can only be computed offline.\n
Multiplicative scores can be computed by passing log-tranformed values.
References
----------
Germann, U. , Galli, G. , Boscacci, M. and Bolliger, M. (2006), Radar
precipitation measurement in a mountainous region. Q.J.R. Meteorol. Soc.,
132: 1669-1692. doi:10.1256/qj.05.190
See also
--------
pysteps.verification.detcatscores
pysteps.verification.detcatscores.det_cat_fct
"""

Expand Down
14 changes: 9 additions & 5 deletions pysteps/verification/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def get_method(name, type="deterministic"):
| scatter* | half the distance between the 16% and 84% percentiles |
| | of the weighted cumulative error distribution, |
| | where error = dB(pred/obs), |
| | as in `Germann et al. (2006)`_ |
| | as in Germann et al. (2006) |
+------------+--------------------------------------------------------+
| binary_mse| binary MSE |
+------------+--------------------------------------------------------+
Expand Down Expand Up @@ -105,11 +105,15 @@ def get_method(name, type="deterministic"):
| ROC | ROC curve |
+------------+--------------------------------------------------------+
type : str
Type of the method. The available options are 'deterministic', 'ensemble'
and 'probabilistic'.
type : {'deterministic', 'ensemble', 'probabilistic'}, optional
Type of the verification method.
.. _`Germann et al. (2006)`:https://doi.org/10.1256/qj.05.190
References
----------
Germann, U. , Galli, G. , Boscacci, M. and Bolliger, M. (2006), Radar
precipitation measurement in a mountainous region. Q.J.R. Meteorol. Soc.,
132: 1669-1692. doi:10.1256/qj.05.190
"""

Expand Down

0 comments on commit 70dcd09

Please sign in to comment.