Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set_geometry #889

Merged
merged 226 commits into from
Jul 9, 2024

simplification

fe378cd
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

set_geometry #889

simplification
fe378cd
Select commit
Loading
Failed to load commit list.
GitHub Actions / Petals / Unit Test Results (3.11) failed Jul 9, 2024 in 0s

1 fail, 191 pass in 4m 43s

192 tests  ±0   191 ✅ ±0   4m 43s ⏱️ -24s
  1 suites ±0     0 💤 ±0 
  1 files   ±0     1 ❌ ±0 

Results for commit fe378cd. ± Comparison against earlier commit 2cdcdb7.

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