Skip to content

Commit 63c5a3d

Browse files
authored
Merge for v8.3.3
2 parents 813c7b9 + b109eeb commit 63c5a3d

20 files changed

+143
-43
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,9 @@ repos:
1212
rev: 22.3.0
1313
hooks:
1414
- id: black
15+
- repo: https://github.com/codespell-project/codespell
16+
rev: v2.4.1
17+
hooks:
18+
- id: codespell
19+
additional_dependencies:
20+
- tomli # TODO only required for python < 3.11

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ conda install -c conda-forge eomaps
8888
8989
9090
> Advanced users can also use `pip` to install **EOmaps** (and selectively install optional dependency groups)
91-
> ```pyhton
91+
> ```python
9292
> pip install eomaps # install only minimal required dependencies
9393
> pip install eomaps[all] # install all optional dependencies
9494
> ...

docs/source/FAQ.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ Most notably (start of 2024), the **required dependency** `cartopy <https://gith
216216

217217
.. tip::
218218

219-
If you want to get a quick overview of the licenses of an existing pyhton environment, I recommend having a look at the `pip-licenses <https://github.com/raimon49/pip-licenses>`_ package!
219+
If you want to get a quick overview of the licenses of an existing python environment, I recommend having a look at the `pip-licenses <https://github.com/raimon49/pip-licenses>`_ package!
220220

221221

222222
Important changes between major versions

docs/source/_static/version_switcher.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"url": "https://eomaps.readthedocs.io/en/dev/"
1010
},
1111
{
12-
"version": "v8.3.2",
13-
"url": "https://eomaps.readthedocs.io/en/v8.3.2/"
12+
"version": "v8.3.3",
13+
"url": "https://eomaps.readthedocs.io/en/v8.3.3/"
1414
},
1515
{
1616
"version": "v8.2.1",

docs/source/contribute/contribute.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ To ensure uniform code style, EOmaps uses `pre-commit hooks <https://pre-commit.
153153
- Removal of trailing whitespaces in `.py` files
154154
- Making sure that files end with a newline
155155
- Compliance to the used `black <https://github.com/psf/black>`_ code formatting standards
156+
- Making sure files don't contain common typos as detected by the `codespell <https://github.com/codespell-project/codespell>`_ spell checker
156157

157158

158159
To initialize pre-commit hooks in your current environment, first install `pre-commit hooks <https://pre-commit.com/>`_ with
@@ -183,6 +184,7 @@ This will install the required pre-commit hooks in your current environment so t
183184
trim trailing whitespace.................................................Passed
184185
mixed line ending........................................................Passed
185186
black....................................................................Passed
187+
codespell................................................................Passed
186188
187189
188190
.. note::
@@ -204,6 +206,9 @@ This will install the required pre-commit hooks in your current environment so t
204206
`pre-commit Issue #2178 comment <https://github.com/pre-commit/pre-commit/issues/2178#issuecomment-1002163763>`_
205207
for a potential resolution.
206208

209+
.. tip::
210+
211+
- When using the `codespell` spell checker, false positives are possible. You should add these to the `[tool.codespell.ignore-words-list]` list in the `pyproject.toml` file.
207212

208213

209214

docs/source/user_guide/how_to_use/api_basics.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ of the following structure:
759759
.. code-block:: python
760760
761761
dict(
762-
name1 = N # position the axis at the Nth grid cell (counting firs)
762+
name1 = N # position the axis at the Nth grid cell (counting first)
763763
name2 = (row, col), # position the axis at the (row, col) grid-cell
764764
name3 = (row, slice(col_start, col_end)) # span the axis over multiple columns
765765
name4 = (slice(row_start, row_end), col) # span the axis over multiple rows

docs/source/user_guide/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ User guide
55
==========
66

77

8-
The following chapters provide detailed informatio on how to use EOmaps
8+
The following chapters provide detailed information on how to use EOmaps
99
with a lot of code-examples!
1010

1111

docs/source/user_guide/miscellaneous/api_read_data.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Create a new Map from a file
6464
6565
m = Maps.from_file.GeoTIFF(
6666
"the filepath",
67-
classify_specs=dict(Maps.CLASSFIERS.Quantiles, k=10),
67+
classify_specs=dict(Maps.CLASSIFIERS.Quantiles, k=10),
6868
cmap="RdBu"
6969
)
7070
m.add_colorbar()
@@ -95,7 +95,7 @@ Similar to :py:class:`Maps.from_file` , a new layer based on a file can be added
9595
coords=("longitude", "latitude"),
9696
data_crs=4326,
9797
isel=dict(time=123),
98-
classify_specs=dict(Maps.CLASSFIERS.Quantiles, k=10),
98+
classify_specs=dict(Maps.CLASSIFIERS.Quantiles, k=10),
9999
cmap="RdBu"
100100
)
101101

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ channels:
33
- conda-forge
44

55
dependencies:
6-
- python >= 3.8
6+
- python >= 3.8, <3.13
77
- numpy
88
- scipy
99
- matplotlib >=3.4

eomaps/_blit_manager.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
"""The BlitManager used to handle drawing and caching of backgrounds."""
77

88
import logging
9+
from contextlib import ExitStack, contextmanager
10+
from functools import lru_cache
911
from itertools import chain
10-
from contextlib import contextmanager, ExitStack
1112
from weakref import WeakSet
12-
from functools import lru_cache
1313

14-
import numpy as np
1514
import matplotlib.pyplot as plt
16-
from matplotlib.transforms import Bbox
15+
import numpy as np
1716
from matplotlib.spines import Spine
17+
from matplotlib.transforms import Bbox
1818

1919
_log = logging.getLogger(__name__)
2020

@@ -840,7 +840,6 @@ def _on_draw_cb(self, event):
840840
loglevel = _log.getEffectiveLevel()
841841

842842
if hasattr(cv, "get_renderer") and not cv.is_saving():
843-
844843
renderer = cv.get_renderer()
845844
if renderer is None:
846845
# don't run if no renderer is available
@@ -886,7 +885,7 @@ def _on_draw_cb(self, event):
886885

887886
# workaround for nbagg backend to avoid glitches
888887
# it's slow but at least it works...
889-
# check progress of the following issuse
888+
# check progress of the following issues
890889
# https://github.com/matplotlib/matplotlib/issues/19116
891890
if self._mpl_backend_blit_fix:
892891
self.update()
@@ -1368,7 +1367,7 @@ def update(
13681367
if blit:
13691368
# workaround for nbagg backend to avoid glitches
13701369
# it's slow but at least it works...
1371-
# check progress of the following issuse
1370+
# check progress of the following issues
13721371
# https://github.com/matplotlib/matplotlib/issues/19116
13731372
if self._mpl_backend_force_full:
13741373
cv._force_full = True
@@ -1549,7 +1548,6 @@ def _cleanup_bg_layers(self, layer):
15491548
)
15501549

15511550
def _cleanup_on_layer_activation(self, layer):
1552-
15531551
try:
15541552
# remove not yet executed lazy-activation methods
15551553
# (e.g. not yet fetched WMS services)

0 commit comments

Comments
 (0)