GitHub Actions / Core / Unit Test Results (3.11)
failed
Dec 19, 2024 in 0s
1 fail, 713 pass in 9m 7s
Annotations
Check warning on line 0 in climada.hazard.centroids.test.test_centr.TestCentroidsMethods
github-actions / Core / Unit Test Results (3.11)
test_plot (climada.hazard.centroids.test.test_centr.TestCentroidsMethods) failed
tests_xml/tests.xml [took 5s]
Raw output
urllib.error.HTTPError: HTTP Error 500: Internal Server Error
self = <climada.hazard.centroids.test.test_centr.TestCentroidsMethods testMethod=test_plot>
def test_plot(self):
"Test Centroids.plot()"
centr = Centroids(
lat=np.array([-5, -3, 0, 3, 5]),
lon=np.array([-180, -175, -170, 170, 175]),
region_id=np.zeros(5),
crs=DEF_CRS,
)
> centr.plot()
climada/hazard/centroids/test/test_centr.py:1101:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
climada/hazard/centroids/centr.py:518: in plot
self.gdf.plot(ax=axis, transform=ccrs.PlateCarree(), **kwargs)
../../../micromamba/envs/climada_env_3.11/lib/python3.11/site-packages/geopandas/plotting.py:979: in __call__
return plot_dataframe(data, *args, **kwargs)
../../../micromamba/envs/climada_env_3.11/lib/python3.11/site-packages/geopandas/plotting.py:716: in plot_dataframe
return plot_series(
../../../micromamba/envs/climada_env_3.11/lib/python3.11/site-packages/geopandas/plotting.py:494: in plot_series
plt.draw()
../../../micromamba/envs/climada_env_3.11/lib/python3.11/site-packages/matplotlib/pyplot.py:1235: in draw
gcf().canvas.draw_idle()
../../../micromamba/envs/climada_env_3.11/lib/python3.11/site-packages/matplotlib/backend_bases.py:1891: in draw_idle
self.draw(*args, **kwargs)
../../../micromamba/envs/climada_env_3.11/lib/python3.11/site-packages/matplotlib/backends/backend_agg.py:382: in draw
self.figure.draw(self.renderer)
../../../micromamba/envs/climada_env_3.11/lib/python3.11/site-packages/matplotlib/artist.py:94: in draw_wrapper
result = draw(artist, renderer, *args, **kwargs)
../../../micromamba/envs/climada_env_3.11/lib/python3.11/site-packages/matplotlib/artist.py:71: in draw_wrapper
return draw(artist, renderer)
../../../micromamba/envs/climada_env_3.11/lib/python3.11/site-packages/matplotlib/figure.py:3257: in draw
mimage._draw_list_compositing_images(
../../../micromamba/envs/climada_env_3.11/lib/python3.11/site-packages/matplotlib/image.py:134: in _draw_list_compositing_images
a.draw(renderer)
../../../micromamba/envs/climada_env_3.11/lib/python3.11/site-packages/matplotlib/artist.py:71: in draw_wrapper
return draw(artist, renderer)
../../../micromamba/envs/climada_env_3.11/lib/python3.11/site-packages/cartopy/mpl/geoaxes.py:524: in draw
return super().draw(renderer=renderer, **kwargs)
../../../micromamba/envs/climada_env_3.11/lib/python3.11/site-packages/matplotlib/artist.py:71: in draw_wrapper
return draw(artist, renderer)
../../../micromamba/envs/climada_env_3.11/lib/python3.11/site-packages/matplotlib/axes/_base.py:3181: in draw
mimage._draw_list_compositing_images(
../../../micromamba/envs/climada_env_3.11/lib/python3.11/site-packages/matplotlib/image.py:134: in _draw_list_compositing_images
a.draw(renderer)
../../../micromamba/envs/climada_env_3.11/lib/python3.11/site-packages/matplotlib/artist.py:71: in draw_wrapper
return draw(artist, renderer)
../../../micromamba/envs/climada_env_3.11/lib/python3.11/site-packages/cartopy/mpl/feature_artist.py:185: in draw
geoms = self._feature.intersecting_geometries(extent)
../../../micromamba/envs/climada_env_3.11/lib/python3.11/site-packages/cartopy/feature/__init__.py:309: in intersecting_geometries
return super().intersecting_geometries(extent)
../../../micromamba/envs/climada_env_3.11/lib/python3.11/site-packages/cartopy/feature/__init__.py:112: in intersecting_geometries
return (geom for geom in self.geometries() if
../../../micromamba/envs/climada_env_3.11/lib/python3.11/site-packages/cartopy/feature/__init__.py:291: in geometries
path = shapereader.natural_earth(resolution=self.scale,
../../../micromamba/envs/climada_env_3.11/lib/python3.11/site-packages/cartopy/io/shapereader.py:306: in natural_earth
return ne_downloader.path(format_dict)
../../../micromamba/envs/climada_env_3.11/lib/python3.11/site-packages/cartopy/io/__init__.py:203: in path
result_path = self.acquire_resource(target_path, format_dict)
../../../micromamba/envs/climada_env_3.11/lib/python3.11/site-packages/cartopy/io/shapereader.py:359: in acquire_resource
shapefile_online = self._urlopen(url)
../../../micromamba/envs/climada_env_3.11/lib/python3.11/site-packages/cartopy/io/__init__.py:242: in _urlopen
return urlopen(url)
../../../micromamba/envs/climada_env_3.11/lib/python3.11/urllib/request.py:216: in urlopen
return opener.open(url, data, timeout)
../../../micromamba/envs/climada_env_3.11/lib/python3.11/urllib/request.py:525: in open
response = meth(req, response)
../../../micromamba/envs/climada_env_3.11/lib/python3.11/urllib/request.py:634: in http_response
response = self.parent.error(
../../../micromamba/envs/climada_env_3.11/lib/python3.11/urllib/request.py:563: in error
return self._call_chain(*args)
../../../micromamba/envs/climada_env_3.11/lib/python3.11/urllib/request.py:496: in _call_chain
result = func(*args)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <urllib.request.HTTPDefaultErrorHandler object at 0x7fe97bf94350>
req = <urllib.request.Request object at 0x7fe9b14ccf90>
fp = <http.client.HTTPResponse object at 0x7fe9b272f7c0>, code = 500
msg = 'Internal Server Error'
hdrs = <http.client.HTTPMessage object at 0x7fe9b14cdbd0>
def http_error_default(self, req, fp, code, msg, hdrs):
> raise HTTPError(req.full_url, code, msg, hdrs, fp)
E urllib.error.HTTPError: HTTP Error 500: Internal Server Error
../../../micromamba/envs/climada_env_3.11/lib/python3.11/urllib/request.py:643: HTTPError
Loading