Skip to content

Commit c8632ee

Browse files
authored
Fix doc (#258)
1 parent 7213c95 commit c8632ee

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

doc/requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Additional requeriments related to the documentation build only
22
sphinx
3-
numpydoc
43
sphinxcontrib.bibtex
54
sphinx_rtd_theme
65
sphinx_gallery

doc/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"sphinx.ext.autosummary",
3131
"sphinx.ext.coverage",
3232
"sphinx.ext.mathjax",
33-
"numpydoc",
33+
"sphinx.ext.napoleon",
3434
"sphinxcontrib.bibtex",
3535
"sphinx_gallery.gen_gallery",
3636
]

doc/source/developer_guide/build_the_docs.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ To install these packages activate your conda development environment and run::
2121

2222
Then, to build the documentation, from the repo's root run::
2323

24-
`tox -e docs`
24+
tox -e docs
2525

2626
This will create a conda environment will all the necessary dependencies and the
2727
data needed to create the examples.

pysteps/verification/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@
88
from .plots import *
99
from .probscores import *
1010
from .spatialscores import *
11+
from .salscores import *

pysteps/verification/salscores.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
def sal(
5151
prediction,
5252
observation,
53-
thr_factor=1 / 15,
53+
thr_factor=0.067, # default to 1/15 as in the reference paper
5454
thr_quantile=0.95,
5555
tstorm_kwargs=None,
5656
):
@@ -94,9 +94,9 @@ def sal(
9494
9595
See also
9696
--------
97-
:py:func:`pysteps.verification.salscores.sal_structure`
98-
:py:func:`pysteps.verification.salscores.sal_amplitude`
99-
:py:func:`pysteps.verification.salscores.sal_location`
97+
:py:func:`pysteps.verification.salscores.sal_structure`,
98+
:py:func:`pysteps.verification.salscores.sal_amplitude`,
99+
:py:func:`pysteps.verification.salscores.sal_location`,
100100
:py:mod:`pysteps.feature.tstorm`
101101
"""
102102
prediction = np.copy(prediction)
@@ -143,9 +143,9 @@ def sal_structure(
143143
144144
See also
145145
--------
146-
:py:func:`pysteps.verification.salscores.sal`
147-
:py:func:`pysteps.verification.salscores.sal_amplitude`
148-
:py:func:`pysteps.verification.salscores.sal_location`
146+
:py:func:`pysteps.verification.salscores.sal`,
147+
:py:func:`pysteps.verification.salscores.sal_amplitude`,
148+
:py:func:`pysteps.verification.salscores.sal_location`,
149149
:py:mod:`pysteps.feature.tstorm`
150150
"""
151151
prediction_objects = _sal_detect_objects(
@@ -183,8 +183,8 @@ def sal_amplitude(prediction, observation):
183183
184184
See also
185185
--------
186-
:py:func:`pysteps.verification.salscores.sal`
187-
:py:func:`pysteps.verification.salscores.sal_structure`
186+
:py:func:`pysteps.verification.salscores.sal`,
187+
:py:func:`pysteps.verification.salscores.sal_structure`,
188188
:py:func:`pysteps.verification.salscores.sal_location`
189189
"""
190190
mean_obs = np.nanmean(observation)
@@ -228,9 +228,9 @@ def sal_location(
228228
229229
See also
230230
--------
231-
:py:func:`pysteps.verification.salscores.sal`
232-
:py:func:`pysteps.verification.salscores.sal_structure`
233-
:py:func:`pysteps.verification.salscores.sal_amplitude`
231+
:py:func:`pysteps.verification.salscores.sal`,
232+
:py:func:`pysteps.verification.salscores.sal_structure`,
233+
:py:func:`pysteps.verification.salscores.sal_amplitude`,
234234
:py:mod:`pysteps.feature.tstorm`
235235
"""
236236
return _sal_l1_param(prediction, observation) + _sal_l2_param(

0 commit comments

Comments
 (0)