Skip to content
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 ci/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
matplotlib==3.10.8
numpy==2.4.2
pandas==2.3.3
pandas==3.0.1
pooch==1.9.0
pint==0.25.2
pyproj==3.7.2
Expand Down
2 changes: 1 addition & 1 deletion src/metpy/io/_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def open_as_needed(filename, mode='rb'):
elif filename.endswith('.gz'):
return gzip.GzipFile(filename, mode)
else:
kwargs = {'errors': 'surrogateescape'} if mode != 'rb' else {}
kwargs = {'errors': 'replace'} if mode != 'rb' else {}
return open(filename, mode, **kwargs) # noqa: SIM115


Expand Down
2 changes: 1 addition & 1 deletion src/metpy/plots/declarative.py
Original file line number Diff line number Diff line change
Expand Up @@ -1000,7 +1000,7 @@ def plotdata(self):
# At least currently imshow with cartopy does not like this
if 'degree' in x_like.units:
x_like = x_like.data
x_like[x_like > 180] -= 360
x_like = np.where(x_like > 180 , x_like - 360, x_like)

return x_like, self.griddata[self.griddata.dims[0]], self.griddata

Expand Down
2 changes: 1 addition & 1 deletion tests/plots/test_declarative.py
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,7 @@ def test_global():


@pytest.mark.mpl_image_compare(remove_text=True,
tolerance=5.101 if version_check('matplotlib<3.10') else 0.019)
tolerance=5.101 if version_check('matplotlib<3.10') else 0.044)
@needs_cartopy
def test_latlon():
"""Test our handling of lat/lon information."""
Expand Down