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

Fix docs #364

Merged
merged 3 commits into from
Jun 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def get_version():
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language = None
language = "en"

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
Expand Down
2 changes: 1 addition & 1 deletion examples/optical_flow_methods_convergence.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

import matplotlib.pyplot as plt
import numpy as np
from matplotlib.cm import get_cmap
from matplotlib.pyplot import get_cmap
from scipy.ndimage import uniform_filter

import pysteps as stp
Expand Down
3 changes: 3 additions & 0 deletions pysteps/nowcasts/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ def compute_percentile_mask(precip, pct):
"""Compute a precipitation mask, where True/False values are assigned for
pixels above/below the given percentile.

.. _ndarray:\
https://docs.scipy.org/doc/numpy/reference/generated/numpy.ndarray.html

Parameters
----------
precip: array_like
Expand Down
4 changes: 2 additions & 2 deletions pysteps/visualization/precipfields.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import matplotlib.pylab as plt
import numpy as np
from matplotlib import cm, colors
from matplotlib import pyplot, colors

from pysteps.visualization.utils import get_geogrid, get_basemap_axis

Expand Down Expand Up @@ -294,7 +294,7 @@ def get_colormap(ptype, units="mm/h", colorscale="pysteps"):
clevs_str = [f"{clev:.1f}" for clev in clevs]
return cmap, norm, clevs, clevs_str

return cm.get_cmap("jet"), colors.Normalize(), None, None
return pyplot.get_cmap("jet"), colors.Normalize(), None, None


def _get_colorlist(units="mm/h", colorscale="pysteps"):
Expand Down
Loading