Upgrade eccodes and cfgrib versions #885
5 fail, 658 pass in 6m 54s
Annotations
Check warning on line 0 in climada.hazard.test.test_tc_tracks.TestIO
github-actions / Unit Test Results Python 3.11
test_hdf5_io (climada.hazard.test.test_tc_tracks.TestIO) failed
tests_xml/tests.xml [took 2s]
Raw output
RuntimeError: NetCDF: Filter error: bad id or parameters or duplicate filter
self = <climada.hazard.test.test_tc_tracks.TestIO testMethod=test_hdf5_io>
def test_hdf5_io(self):
"""Test writing and reading hdf5 TCTracks instances"""
path = DATA_DIR.joinpath("tc_tracks.h5")
tc_track = tc.TCTracks.from_ibtracs_netcdf(
provider='usa', year_range=(1993, 1994), basin='EP', estimate_missing=True)
> tc_track.write_hdf5(path)
climada/hazard/test/test_tc_tracks.py:327:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
climada/hazard/tc_tracks.py:1388: in write_hdf5
ds_combined.to_netcdf(file_name, encoding=encoding)
../../../micromamba/envs/climada_env_3.11/lib/python3.11/site-packages/xarray/core/dataset.py:2329: in to_netcdf
return to_netcdf( # type: ignore # mypy cannot resolve the overloads:(
../../../micromamba/envs/climada_env_3.11/lib/python3.11/site-packages/xarray/backends/api.py:1360: in to_netcdf
dump_to_store(
../../../micromamba/envs/climada_env_3.11/lib/python3.11/site-packages/xarray/backends/api.py:1407: in dump_to_store
store.store(variables, attrs, check_encoding, writer, unlimited_dims=unlimited_dims)
../../../micromamba/envs/climada_env_3.11/lib/python3.11/site-packages/xarray/backends/common.py:367: in store
self.set_variables(
../../../micromamba/envs/climada_env_3.11/lib/python3.11/site-packages/xarray/backends/common.py:405: in set_variables
target, source = self.prepare_variable(
../../../micromamba/envs/climada_env_3.11/lib/python3.11/site-packages/xarray/backends/netCDF4_.py:538: in prepare_variable
nc4_var = self.ds.createVariable(**default_args)
src/netCDF4/_netCDF4.pyx:2962: in netCDF4._netCDF4.Dataset.createVariable
???
src/netCDF4/_netCDF4.pyx:4202: in netCDF4._netCDF4.Variable.__init__
???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> ???
E RuntimeError: NetCDF: Filter error: bad id or parameters or duplicate filter
src/netCDF4/_netCDF4.pyx:2029: RuntimeError
Check warning on line 0 in climada.util.test.test_finance.TestWBData
github-actions / Unit Test Results Python 3.11
test_wb_esp_1950_pass (climada.util.test.test_finance.TestWBData) failed
tests_xml/tests.xml [took 0s]
Raw output
AssertionError: 12433394725.2159 != 12072126075.397
self = <climada.util.test.test_finance.TestWBData testMethod=test_wb_esp_1950_pass>
def test_wb_esp_1950_pass(self):
"""Test world_bank function Sint Maarten."""
ref_year = 1950
wb_year, wb_val = world_bank('ESP', ref_year, 'NY.GDP.MKTP.CD')
ref_year = 1960
ref_val = 12072126075.397
self.assertEqual(wb_year, ref_year)
> self.assertEqual(wb_val, ref_val)
E AssertionError: 12433394725.2159 != 12072126075.397
climada/util/test/test_finance.py:126: AssertionError
Check warning on line 0 in climada.util.test.test_plot.TestPlots
github-actions / Unit Test Results Python 3.11
test_geo_bin_from_array (climada.util.test.test_plot.TestPlots) failed
tests_xml/tests.xml [took 2s]
Raw output
AttributeError: 'NoneType' object has no attribute 'vmax'
self = <climada.util.test.test_plot.TestPlots testMethod=test_geo_bin_from_array>
def test_geo_bin_from_array(self):
values = np.array([1, 2.0, 5, 1])
coord = np.array([[-10, 17], [-30, 20], [5, 75], [-16, 20]])
var_name = 'test'
title = 'test'
projection = ccrs.PlateCarree()
cmap = 'viridis'
ax = u_plot.geo_bin_from_array(values, coord, var_name, title,
pop_name=True, extend='neither',
shapes=True, axes=None, proj=projection,
figsize=(9, 13), cmap=cmap)
self.assertEqual(var_name, ax.get_title())
> self.assertAlmostEqual(np.max(values), ax.collections[0].colorbar.vmax)
E AttributeError: 'NoneType' object has no attribute 'vmax'
climada/util/test/test_plot.py:119: AttributeError
Check warning on line 0 in climada.util.test.test_plot.TestPlots
github-actions / Unit Test Results Python 3.11
test_geo_im_from_array (climada.util.test.test_plot.TestPlots) failed
tests_xml/tests.xml [took 1s]
Raw output
AttributeError: 'NoneType' object has no attribute 'vmax'
self = <climada.util.test.test_plot.TestPlots testMethod=test_geo_im_from_array>
def test_geo_im_from_array(self):
values = np.array([1, 2.0, 5, 1])
coord = np.array([[-17, 178], [-10, 180], [-27, 175], [-16, 186]])
var_name = 'test'
title = 'test'
projection = ccrs.PlateCarree()
cmap = 'viridis'
ax = u_plot.geo_im_from_array(values, coord, var_name, title,
proj=projection, smooth=True, axes=None, figsize=(9, 13), cmap=cmap)
self.assertEqual(var_name, ax.get_title())
> self.assertAlmostEqual(np.max(values), ax.collections[0].colorbar.vmax)
E AttributeError: 'NoneType' object has no attribute 'vmax'
climada/util/test/test_plot.py:134: AttributeError
Check warning on line 0 in climada.util.test.test_plot.TestPlots
github-actions / Unit Test Results Python 3.11
test_geo_scatter_from_array (climada.util.test.test_plot.TestPlots) failed
tests_xml/tests.xml [took 2s]
Raw output
AttributeError: 'NoneType' object has no attribute 'vmax'
self = <climada.util.test.test_plot.TestPlots testMethod=test_geo_scatter_from_array>
def test_geo_scatter_from_array(self):
values = np.array([1, 2.0, 1, 1])
coord = np.array([[-17, 178], [-10, 180], [-27, 175], [-16, 186]])
var_name = 'test'
title = 'test'
projection = ccrs.PlateCarree()
cmap = 'viridis'
ax = u_plot.geo_scatter_from_array(values, coord, var_name, title,
pop_name=True, extend='neither',
shapes=True, axes=None, proj=projection,
figsize=(9, 13), cmap=cmap)
self.assertEqual(var_name, ax.get_title())
> self.assertAlmostEqual(np.max(values), ax.collections[0].colorbar.vmax)
E AttributeError: 'NoneType' object has no attribute 'vmax'
climada/util/test/test_plot.py:102: AttributeError