Skip to content

test_seasonal_statistics.py fails due to decoding errors #177

@peanutfun

Description

@peanutfun

Three tests in test_seasonal_statistics.py fail due to a decoding error. Maybe the Copernicus data changed somehow? This becomes apparent in the compatibility tests for Climada Core, see e.g. https://github.com/CLIMADA-project/climada_python/actions/runs/15728137358/job/44323368118?pr=1063.

=========================== short test summary info ============================
FAILED climada_petals/hazard/copernicus_interface/test/test_seasonal_statistics.py::TestSeasonalStatistics::test_tmax_calculation - ValueError: Failed to decode variable 'step': failed to prevent overwriting existing key dtype in attrs on variable 'step'. This is probably an encoding field used by xarray to describe how a variable is serialized. To proceed, remove this key from the variable's attributes manually.
FAILED climada_petals/hazard/copernicus_interface/test/test_seasonal_statistics.py::TestSeasonalStatistics::test_tmean_calculation - ValueError: Failed to decode variable 'step': failed to prevent overwriting existing key dtype in attrs on variable 'step'. This is probably an encoding field used by xarray to describe how a variable is serialized. To proceed, remove this key from the variable's attributes manually.
FAILED climada_petals/hazard/copernicus_interface/test/test_seasonal_statistics.py::TestSeasonalStatistics::test_tmin_calculation - ValueError: Failed to decode variable 'step': failed to prevent overwriting existing key dtype in attrs on variable 'step'. This is probably an encoding field used by xarray to describe how a variable is serialized. To proceed, remove this key from the variable's attributes manually.

@DahyannAraya @ValentinGebhart

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions