Skip to content

Merge pull request #133 from CLIMADA-project/pin-esmpy

Sign in for the full log view
GitHub Actions / Petals / Unit Test Results (3.11) failed Jul 8, 2024 in 0s

1 fail, 191 pass in 5m 24s

192 tests  ±0   191 ✅ ±0   5m 24s ⏱️ +32s
  1 suites ±0     0 💤 ±0 
  1 files   ±0     1 ❌ ±0 

Results for commit 76eac59. ± Comparison against earlier commit 871e407.

Annotations

Check warning on line 0 in climada_petals.hazard.test.test_tc_tracks_forecast.TestECMWF

See this annotation in the file changed.

@github-actions github-actions / Petals / Unit Test Results (3.11)

test_hdf5_io (climada_petals.hazard.test.test_tc_tracks_forecast.TestECMWF) failed

climada_petals/tests_xml/tests.xml [took 0s]
Raw output
RuntimeError: NetCDF: Filter error: bad id or parameters or duplicate filter: (variable 'basin', group '/')
self = <climada_petals.hazard.test.test_tc_tracks_forecast.TestECMWF testMethod=test_hdf5_io>

    def test_hdf5_io(self):
        """Test writing and reading hdf5 TCTracks instances"""
        tc_track = TCForecast()
        tc_track.fetch_ecmwf(files=TEST_BUFR_FILES)
        path = DATA_DIR.joinpath("tc_tracks_forecast.h5")
>       tc_track.write_hdf5(path)

climada_petals/hazard/test/test_tc_tracks_forecast.py:144: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
climada_petals/hazard/tc_tracks_forecast.py:441: in write_hdf5
    super().write_hdf5(file_name=file_name, complevel=complevel)
../../../../micromamba/envs/climada_env_3.11/lib/python3.11/site-packages/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:2327: 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:1337: in to_netcdf
    dump_to_store(
../../../../micromamba/envs/climada_env_3.11/lib/python3.11/site-packages/xarray/backends/api.py:1384: 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:2956: in netCDF4._netCDF4.Dataset.createVariable
    ???
src/netCDF4/_netCDF4.pyx:4211: in netCDF4._netCDF4.Variable.__init__
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

>   ???
E   RuntimeError: NetCDF: Filter error: bad id or parameters or duplicate filter: (variable 'basin', group '/')

src/netCDF4/_netCDF4.pyx:2113: RuntimeError