Skip to content

optimize concatenation of centroids

Jenkins - WCR / Jenkins / Unit Tests failed Dec 19, 2024 in 9m 52s

Declarative: Post Actions: warning in 'junit' step

ci / unit_test / unit_test / Shell Script

Error in sh step, with arguments #!/bin/bash export PATH=$PATH:$CONDAPATH source activate climada_env rm -rf tests_xml/ rm -rf coverage/ make unit_test.

script returned exit code 2
Build log
pytest --junitxml=tests_xml/tests.xml --cov --cov-config=.coveragerc --cov-report html:coverage --cov-report xml:coverage.xml --cov-report term:skip-covered --ignore=climada/test climada/
============================= test session starts ==============================
platform linux -- Python 3.11.6, pytest-8.3.4, pluggy-1.5.0
rootdir: /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace
plugins: Faker-33.1.0, subtests-0.14.1, cov-6.0.0
collected 714 items

climada/engine/test/test_cost_benefit.py ......................          [  3%]
climada/engine/test/test_forecast.py ...                                 [  3%]
climada/engine/test/test_impact.py ..................................... [  8%]
.......                                                                  [  9%]
climada/engine/test/test_impact_calc.py ..............................   [ 13%]
climada/engine/test/test_impact_data.py ...........                      [ 15%]
climada/engine/unsequa/test/test_unsequa.py ..................           [ 17%]
climada/entity/disc_rates/test/test_base.py ..............               [ 19%]
climada/entity/exposures/test/test_base.py ..........................    [ 23%]
climada/entity/exposures/test/test_litpop.py ......................      [ 26%]
climada/entity/exposures/test/test_mat.py .........                      [ 27%]
climada/entity/exposures/test/test_nightlight.py ...                     [ 28%]
climada/entity/impact_funcs/test/test_base.py ....                       [ 28%]
climada/entity/impact_funcs/test/test_imp_fun_set.py ................... [ 31%]
....                                                                     [ 32%]
climada/entity/impact_funcs/test/test_tc.py ........                     [ 33%]
climada/entity/impact_funcs/test/test_ws.py .                            [ 33%]
climada/entity/measures/test/test_base.py ...........                    [ 34%]
climada/entity/measures/test/test_meas_set.py .....................      [ 37%]
climada/entity/tag/test/test_tag.py ...                                  [ 38%]
climada/entity/test/test_entity.py .....                                 [ 38%]
climada/hazard/centroids/test/test_centr.py ............................ [ 42%]
.......F.F.............F                                                 [ 46%]
climada/hazard/test/test_base.py ....................................... [ 51%]
...............                                                          [ 53%]
climada/hazard/test/test_io.py ..................                        [ 56%]
climada/hazard/test/test_storm_europe.py .......                         [ 57%]
climada/hazard/test/test_tc_cc.py ........                               [ 58%]
climada/hazard/test/test_tc_tracks.py .................................. [ 63%]
......                                                                   [ 64%]
climada/hazard/test/test_tc_tracks_synth.py ..................           [ 66%]
climada/hazard/test/test_trop_cyclone.py ..........                      [ 67%]
climada/hazard/test/test_trop_cyclone_windfields.py .........            [ 69%]
climada/util/calibrate/test/test_base.py .....                           [ 69%]
climada/util/calibrate/test/test_bayesian_optimizer.py ...........       [ 71%]
climada/util/calibrate/test/test_scipy_optimizer.py ...                  [ 71%]
climada/util/test/test__init__.py .                                      [ 71%]
climada/util/test/test_checker.py .....                                  [ 72%]
climada/util/test/test_config.py ...                                     [ 73%]
climada/util/test/test_coordinates.py .................................. [ 77%]
...........................................                              [ 83%]
climada/util/test/test_dates_times.py ......                             [ 84%]
climada/util/test/test_dwd_icon.py .....                                 [ 85%]
climada/util/test/test_files.py ............                             [ 87%]
climada/util/test/test_finance.py ...............                        [ 89%]
climada/util/test/test_hdf5.py ......                                    [ 90%]
climada/util/test/test_interpolation.py ..........                       [ 91%]
climada/util/test/test_lines_polys_handler.py .........................  [ 94%]
climada/util/test/test_plot.py .........                                 [ 96%]
climada/util/test/test_save.py ..                                        [ 96%]
climada/util/test/test_select.py .                                       [ 96%]
climada/util/test/test_value_representation.py ..................        [ 99%]
climada/util/test/test_yearsets.py ......                                [100%]

=================================== FAILURES ===================================
_______________________ TestCentroidsMethods.test_append _______________________

self = <climada.hazard.centroids.test.test_centr.TestCentroidsMethods testMethod=test_append>

    def test_append(self):
        lat2, lon2 = np.array([6, 7, 8, 9, 10]), np.array([6, 7, 8, 9, 10])
        newcentr = Centroids(lat=lat2, lon=lon2)
        newcentr.append(self.centr)
>       self.assertTrue(newcentr.size == len(self.centr.lon) + len(lon2))
E       AssertionError: False is not true

climada/hazard/centroids/test/test_centr.py:803: AssertionError
____________________ TestCentroidsMethods.test_append_pass _____________________

self = <climada.hazard.centroids.test.test_centr.TestCentroidsMethods testMethod=test_append_pass>

    def test_append_pass(self):
        """Append points"""
        centr = self.centr
        centr_bis = Centroids(
            lat=np.array([1, 2, 3]), lon=np.array([4, 5, 6]), crs=DEF_CRS
        )
        with self.assertRaises(ValueError):
            # Different crs
            centr_bis.to_crs(ALT_CRS).append(centr)
        centr_bis.append(centr)
        self.assertAlmostEqual(centr_bis.lat[0], 1)
        self.assertAlmostEqual(centr_bis.lat[1], 2)
        self.assertAlmostEqual(centr_bis.lat[2], 3)
        self.assertAlmostEqual(centr_bis.lon[0], 4)
        self.assertAlmostEqual(centr_bis.lon[1], 5)
        self.assertAlmostEqual(centr_bis.lon[2], 6)
>       self.assertTrue(np.array_equal(centr_bis.lat[3:], centr.lat))
E       AssertionError: False is not true

climada/hazard/centroids/test/test_centr.py:796: AssertionError
_______________________ TestCentroidsMethods.test_union ________________________

self = <climada.hazard.centroids.test.test_centr.TestCentroidsMethods testMethod=test_union>

    def test_union(self):
        lat, lon = np.array([0, 1]), np.array([0, -1])
        on_land = np.array([True, True])
        cent1 = Centroids(lat=lat, lon=lon, on_land=on_land)
    
        lat2, lon2 = np.array([2, 3]), np.array([-2, 3])
        on_land2 = np.array([False, False])
        cent2 = Centroids(lat=lat2, lon=lon2, on_land=on_land2)
    
        lat3, lon3 = np.array([-1, -2]), np.array([1, 2])
        cent3 = Centroids(lat=lat3, lon=lon3)
    
        cent = cent1.union(cent2)
        np.testing.assert_array_equal(cent.lat, np.concatenate([lat, lat2]))
        np.testing.assert_array_equal(cent.lon, np.concatenate([lon, lon2]))
        np.testing.assert_array_equal(cent.on_land, np.concatenate([on_land, on_land2]))
    
        cent = cent1.union(cent1, cent2)
        np.testing.assert_array_equal(cent.lat, np.concatenate([lat, lat2]))
        np.testing.assert_array_equal(cent.lon, np.concatenate([lon, lon2]))
        np.testing.assert_array_equal(cent.on_land, np.concatenate([on_land, on_land2]))
    
>       cent = Centroids.union(cent1)

climada/hazard/centroids/test/test_centr.py:872: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
climada/hazard/centroids/centr.py:404: in union
    centroids.finalize_append()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <climada.hazard.centroids.centr.Centroids object at 0x7fca685a47d0>

    def finalize_append(self):
        """Concatenate all batch-appended centroids into the main GeoDataFrame (gdf).
    
        This method should be called after all `append` operations have been performed on the
        Centroids object. It concatenates all the accumulated GeoDataFrames stored in the
        `_batch_gdf` list into the `gdf` attribute of the Centroids object. By doing this in one
        step, it avoids the performance overhead associated with repeated concatenations.
    
        Once concatenation is complete, the `_batch_gdf` list is cleared to prepare for future
        append operations.
        """
    
>       self.gdf = pd.concat([self.gdf] + self._batch_gdf, ignore_index=True)
E       AttributeError: 'Centroids' object has no attribute '_batch_gdf'

climada/hazard/centroids/centr.py:382: AttributeError
=============================== warnings summary ===============================
climada/util/__init__.py:27
  /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace/climada/util/__init__.py:27: FionaDeprecationWarning: This function will be removed in version 2.0. Please use CRS.from_epsg() instead.
    from .constants import *

../../../../../miniforge3/envs/climada_env/lib/python3.11/site-packages/dask/dataframe/_pyarrow_compat.py:15
  /var/lib/jenkins/miniforge3/envs/climada_env/lib/python3.11/site-packages/dask/dataframe/_pyarrow_compat.py:15: FutureWarning: Minimal version of pyarrow will soon be increased to 14.0.1. You are using 12.0.1. Please consider upgrading.
    warnings.warn(

../../../../../miniforge3/envs/climada_env/lib/python3.11/site-packages/pandas_datareader/compat/__init__.py:11
  /var/lib/jenkins/miniforge3/envs/climada_env/lib/python3.11/site-packages/pandas_datareader/compat/__init__.py:11: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
    PANDAS_VERSION = LooseVersion(pd.__version__)

../../../../../miniforge3/envs/climada_env/lib/python3.11/site-packages/pandas_datareader/compat/__init__.py:13
  /var/lib/jenkins/miniforge3/envs/climada_env/lib/python3.11/site-packages/pandas_datareader/compat/__init__.py:13: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
    PANDAS_0210 = PANDAS_VERSION >= LooseVersion("0.21.0")

../../../../../miniforge3/envs/climada_env/lib/python3.11/site-packages/pandas_datareader/compat/__init__.py:14
  /var/lib/jenkins/miniforge3/envs/climada_env/lib/python3.11/site-packages/pandas_datareader/compat/__init__.py:14: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
    PANDAS_0220 = PANDAS_VERSION >= LooseVersion("0.22.0")

../../../../../miniforge3/envs/climada_env/lib/python3.11/site-packages/pandas_datareader/compat/__init__.py:15
  /var/lib/jenkins/miniforge3/envs/climada_env/lib/python3.11/site-packages/pandas_datareader/compat/__init__.py:15: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
    PANDAS_0230 = PANDAS_VERSION >= LooseVersion("0.23.0")

climada/hazard/io.py:1149: 12 warnings
climada/engine/test/test_cost_benefit.py: 60 warnings
climada/engine/test/test_impact.py: 8 warnings
climada/engine/test/test_impact_calc.py: 4 warnings
climada/engine/unsequa/test/test_unsequa.py: 9664 warnings
climada/entity/measures/test/test_base.py: 32 warnings
climada/hazard/test/test_base.py: 12 warnings
climada/hazard/test/test_io.py: 3 warnings
climada/hazard/test/test_trop_cyclone.py: 5 warnings
  /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace/climada/hazard/io.py:1149: DeprecationWarning: `product` is deprecated as of NumPy 1.25.0, and will be removed in NumPy 2.0. Please use `prod` instead.
    hazard_kwargs[var_name] = np.array(hf_data.get(var_name))

climada/hazard/io.py:1169: 3 warnings
climada/engine/test/test_cost_benefit.py: 15 warnings
climada/engine/test/test_impact.py: 2 warnings
climada/engine/test/test_impact_calc.py: 1 warning
climada/engine/unsequa/test/test_unsequa.py: 2416 warnings
climada/entity/measures/test/test_base.py: 8 warnings
climada/hazard/test/test_base.py: 3 warnings
climada/hazard/test/test_io.py: 1 warning
climada/hazard/test/test_trop_cyclone.py: 3 warnings
  /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace/climada/hazard/io.py:1169: DeprecationWarning: `product` is deprecated as of NumPy 1.25.0, and will be removed in NumPy 2.0. Please use `prod` instead.
    u_hdf5.to_string, np.array(hf_data.get(var_name)).tolist()

climada/hazard/centroids/centr.py:1020: 4 warnings
climada/engine/test/test_cost_benefit.py: 15 warnings
climada/engine/test/test_impact.py: 2 warnings
climada/engine/test/test_impact_calc.py: 1 warning
climada/entity/measures/test/test_base.py: 6 warnings
climada/hazard/test/test_base.py: 3 warnings
  /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace/climada/hazard/centroids/centr.py:1020: DeprecationWarning: `product` is deprecated as of NumPy 1.25.0, and will be removed in NumPy 2.0. Please use `prod` instead.
    latitude = np.array(data.get("lat"))

climada/hazard/centroids/centr.py:1021: 4 warnings
climada/engine/test/test_cost_benefit.py: 15 warnings
climada/engine/test/test_impact.py: 2 warnings
climada/engine/test/test_impact_calc.py: 1 warning
climada/entity/measures/test/test_base.py: 6 warnings
climada/hazard/test/test_base.py: 3 warnings
  /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace/climada/hazard/centroids/centr.py:1021: DeprecationWarning: `product` is deprecated as of NumPy 1.25.0, and will be removed in NumPy 2.0. Please use `prod` instead.
    longitude = np.array(data.get("lon"))

climada/hazard/centroids/centr.py:1039: 20 warnings
climada/engine/test/test_cost_benefit.py: 75 warnings
climada/engine/test/test_impact.py: 10 warnings
climada/engine/test/test_impact_calc.py: 5 warnings
climada/engine/unsequa/test/test_unsequa.py: 14496 warnings
climada/entity/measures/test/test_base.py: 42 warnings
climada/hazard/test/test_base.py: 15 warnings
  /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace/climada/hazard/centroids/centr.py:1039: DeprecationWarning: `product` is deprecated as of NumPy 1.25.0, and will be removed in NumPy 2.0. Please use `prod` instead.
    values = np.array(data.get(centr_name))

../../../../../miniforge3/envs/climada_env/lib/python3.11/pickle.py:1718: 3 warnings
climada/engine/test/test_impact_calc.py: 1 warning
climada/engine/unsequa/test/test_unsequa.py: 2593 warnings
climada/entity/measures/test/test_base.py: 3 warnings
  /var/lib/jenkins/miniforge3/envs/climada_env/lib/python3.11/pickle.py:1718: UserWarning: Unpickling a shapely <2.0 geometry object. Please save the pickle again; shapely 2.1 will not have this compatibility.
    setstate(state)

climada/engine/test/test_cost_benefit.py: 612 warnings
climada/entity/disc_rates/test/test_base.py: 51 warnings
climada/entity/exposures/test/test_mat.py: 510 warnings
climada/entity/impact_funcs/test/test_imp_fun_set.py: 51 warnings
climada/entity/measures/test/test_base.py: 1071 warnings
climada/entity/measures/test/test_meas_set.py: 51 warnings
climada/entity/test/test_entity.py: 204 warnings
climada/util/test/test_coordinates.py: 33 warnings
climada/util/test/test_hdf5.py: 619 warnings
  /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace/climada/util/hdf5_handler.py:68: DeprecationWarning: `product` is deprecated as of NumPy 1.25.0, and will be removed in NumPy 2.0. Please use `prod` instead.
    contents[name] = np.array(obj)

climada/engine/test/test_cost_benefit.py: 1944 warnings
climada/entity/exposures/test/test_mat.py: 15 warnings
climada/entity/impact_funcs/test/test_imp_fun_set.py: 450 warnings
climada/entity/measures/test/test_base.py: 3888 warnings
climada/entity/measures/test/test_meas_set.py: 195 warnings
climada/entity/test/test_entity.py: 648 warnings
climada/util/test/test_hdf5.py: 251 warnings
  /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace/climada/util/hdf5_handler.py:92: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
    return "".join(chr(int(c)) for c in array)

climada/engine/test/test_cost_benefit.py: 8 warnings
climada/engine/unsequa/test/test_unsequa.py: 16 warnings
  /var/lib/jenkins/miniforge3/envs/climada_env/lib/python3.11/site-packages/openpyxl/worksheet/_read_only.py:79: UserWarning: Unknown extension is not supported and will be removed
    for idx, row in parser.parse():

climada/engine/test/test_cost_benefit.py::TestRiskFuncs::test_impact
  /var/lib/jenkins/miniforge3/envs/climada_env/lib/python3.11/unittest/case.py:678: DeprecationWarning: It is deprecated to return a value that is not None from a test case (<bound method TestRiskFuncs.test_impact of <climada.engine.test.test_cost_benefit.TestRiskFuncs testMethod=test_impact>>)
    return self.run(*args, **kwds)

climada/engine/test/test_forecast.py::TestCalc::test_Forecast_calc_properties
  /var/lib/jenkins/miniforge3/envs/climada_env/lib/python3.11/site-packages/cfgrib/xarray_plugin.py:10: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
    if LooseVersion(xr.__version__) <= "0.17.0":

climada/engine/test/test_forecast.py::TestCalc::test_Forecast_calc_properties
  /var/lib/jenkins/miniforge3/envs/climada_env/lib/python3.11/site-packages/setuptools/_distutils/version.py:337: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
    other = LooseVersion(other)

climada/engine/test/test_impact.py::TestRPmatrix::test_local_exceedance_impact_methods
climada/hazard/test/test_base.py::TestStats::test_local_exceedance_intensity_methods
  /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace/climada/util/interpolation.py:214: RuntimeWarning: divide by zero encountered in log10
    fill_value = (y_train[0], np.log10(y_asymptotic) if logy else y_asymptotic)

climada/engine/test/test_impact.py: 94 warnings
climada/hazard/test/test_io.py: 4 warnings
climada/hazard/test/test_trop_cyclone.py: 4 warnings
climada/util/calibrate/test/test_base.py: 6 warnings
climada/util/calibrate/test/test_bayesian_optimizer.py: 4 warnings
  /var/lib/jenkins/miniforge3/envs/climada_env/lib/python3.11/site-packages/h5py/_hl/attrs.py:104: DeprecationWarning: `product` is deprecated as of NumPy 1.25.0, and will be removed in NumPy 2.0. Please use `prod` instead.
    self.create(name, data=value)

climada/engine/test/test_impact.py::TestImpactH5IO::test_cycle_hdf5
climada/engine/test/test_impact.py::TestImpactH5IO::test_read_hdf5_full
climada/engine/test/test_impact.py::TestImpactH5IO::test_read_hdf5_minimal
  /var/lib/jenkins/miniforge3/envs/climada_env/lib/python3.11/site-packages/scipy/sparse/_compressed.py:84: DeprecationWarning: `product` is deprecated as of NumPy 1.25.0, and will be removed in NumPy 2.0. Please use `prod` instead.
    arg1 = np.asarray(arg1)

climada/engine/test/test_impact.py::TestImpactH5IO::test_cycle_hdf5
climada/engine/test/test_impact.py::TestImpactH5IO::test_cycle_hdf5
climada/engine/test/test_impact.py::TestImpactH5IO::test_read_hdf5_full
climada/engine/test/test_impact.py::TestImpactH5IO::test_read_hdf5_full
climada/engine/test/test_impact.py::TestImpactH5IO::test_read_hdf5_full
climada/engine/test/test_impact.py::TestImpactH5IO::test_read_hdf5_full
  /var/lib/jenkins/miniforge3/envs/climada_env/lib/python3.11/site-packages/scipy/sparse/_sputils.py:185: DeprecationWarning: `product` is deprecated as of NumPy 1.25.0, and will be removed in NumPy 2.0. Please use `prod` instead.
    arr = np.asarray(arr)

climada/engine/test/test_impact.py::TestImpactH5IO::test_cycle_hdf5
climada/engine/test/test_impact.py::TestImpactH5IO::test_read_hdf5_full
climada/engine/test/test_impact.py::TestImpactH5IO::test_read_hdf5_full
  /var/lib/jenkins/miniforge3/envs/climada_env/lib/python3.11/site-packages/scipy/sparse/_compressed.py:74: DeprecationWarning: `product` is deprecated as of NumPy 1.25.0, and will be removed in NumPy 2.0. Please use `prod` instead.
    self.indices = np.array(indices, copy=copy, dtype=idx_dtype)

climada/engine/test/test_impact.py::TestImpactH5IO::test_cycle_hdf5
climada/engine/test/test_impact.py::TestImpactH5IO::test_read_hdf5_full
climada/engine/test/test_impact.py::TestImpactH5IO::test_read_hdf5_full
  /var/lib/jenkins/miniforge3/envs/climada_env/lib/python3.11/site-packages/scipy/sparse/_compressed.py:75: DeprecationWarning: `product` is deprecated as of NumPy 1.25.0, and will be removed in NumPy 2.0. Please use `prod` instead.
    self.indptr = np.array(indptr, copy=copy, dtype=idx_dtype)

climada/engine/test/test_impact.py::TestImpactH5IO::test_cycle_hdf5
climada/engine/test/test_impact.py::TestImpactH5IO::test_read_hdf5_full
climada/engine/test/test_impact.py::TestImpactH5IO::test_read_hdf5_full
  /var/lib/jenkins/miniforge3/envs/climada_env/lib/python3.11/site-packages/scipy/sparse/_compressed.py:76: DeprecationWarning: `product` is deprecated as of NumPy 1.25.0, and will be removed in NumPy 2.0. Please use `prod` instead.
    self.data = np.array(data, copy=copy, dtype=dtype)

climada/engine/test/test_impact.py: 32 warnings
  /var/lib/jenkins/miniforge3/envs/climada_env/lib/python3.11/site-packages/numpy/testing/_private/utils.py:649: DeprecationWarning: `product` is deprecated as of NumPy 1.25.0, and will be removed in NumPy 2.0. Please use `prod` instead.
    x = np.asanyarray(x)

climada/engine/test/test_impact_calc.py::TestImpactCalc::test_init
  /var/lib/jenkins/miniforge3/envs/climada_env/lib/python3.11/site-packages/scipy/sparse/_index.py:108: SparseEfficiencyWarning: Changing the sparsity structure of a csr_matrix is expensive. lil and dok are more efficient.
    self._set_intXint(row, col, x.flat[0])

climada/engine/test/test_impact_calc.py::TestImpactCalc::test_single_exp_zero_mdr
  /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace/climada/engine/test/test_impact_calc.py:557: DeprecatedWarning: from_lat_lon is deprecated. This method will be removed in a future version. Simply use the constructor instead.
    centroids = Centroids.from_lat_lon([-26.16], [28.20])

climada/engine/test/test_impact_calc.py::TestImpactCalc::test_single_exp_zero_mdr
  /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace/climada/engine/test/test_impact_calc.py:576: DeprecatedWarning: set_geometry_points is deprecated. Obsolete method call. As of climada 5.0, geometry points are set during object initialization
    exp.set_geometry_points()

climada/engine/test/test_impact_data.py: 6 warnings
climada/entity/exposures/test/test_litpop.py: 6 warnings
climada/util/test/test_finance.py: 5 warnings
  /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace/climada/util/finance.py:218: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
    close_val = float(close_val.iloc[0].values)

climada/engine/unsequa/test/test_unsequa.py::TestOutput::test_plot_unc_imp
climada/engine/unsequa/test/test_unsequa.py::TestOutput::test_plot_unc_imp
  /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace/climada/engine/unsequa/unc_output.py:673: UserWarning: Attempting to set identical low and high xlims makes transformation singular; automatically expanding.
    ax.set_xlim([data.min(), data.max()])

climada/engine/unsequa/test/test_unsequa.py::TestOutput::test_plot_unc_imp
climada/engine/unsequa/test/test_unsequa.py::TestOutput::test_plot_unc_imp
  /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace/climada/engine/unsequa/unc_output.py:764: UserWarning: No artists with labels found to put in legend.  Note that artists whose label start with an underscore are ignored when legend() is called with no argument.
    ax.legend(loc="lower right")

climada/engine/unsequa/test/test_unsequa.py: 2416 warnings
climada/entity/measures/test/test_base.py: 2 warnings
  /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace/climada/hazard/centroids/centr.py:1023: DeprecationWarning: `product` is deprecated as of NumPy 1.25.0, and will be removed in NumPy 2.0. Please use `prod` instead.
    latitude = np.array(data.get("latitude"))

climada/engine/unsequa/test/test_unsequa.py: 2416 warnings
climada/entity/measures/test/test_base.py: 2 warnings
  /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace/climada/hazard/centroids/centr.py:1024: DeprecationWarning: `product` is deprecated as of NumPy 1.25.0, and will be removed in NumPy 2.0. Please use `prod` instead.
    longitude = np.array(data.get("longitude"))

climada/engine/unsequa/test/test_unsequa.py: 13 warnings
  /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace/climada/engine/unsequa/calc_base.py:331: DeprecationWarning: `salib.sample.saltelli` will be removed in SALib 1.5.1 Please use `salib.sample.sobol`
    sample_uniform = salib_sampling_method.sample(

climada/engine/unsequa/test/test_unsequa.py::TestOutput::test_save_load_pass
climada/engine/unsequa/test/test_unsequa.py::TestOutput::test_save_load_pass
climada/engine/unsequa/test/test_unsequa.py::TestOutput::test_save_load_pass
climada/engine/unsequa/test/test_unsequa.py::TestCalcDelta::test_calc_sensitivity_pass
climada/engine/unsequa/test/test_unsequa.py::TestCalcDelta::test_calc_sensitivity_pass
climada/engine/unsequa/test/test_unsequa.py::TestCalcImpact::test_calc_sensitivity_all_pass
climada/engine/unsequa/test/test_unsequa.py::TestCalcImpact::test_calc_sensitivity_all_pass
climada/engine/unsequa/test/test_unsequa.py::TestCalcImpact::test_calc_sensitivity_all_pass
climada/engine/unsequa/test/test_unsequa.py::TestCalcImpact::test_calc_sensitivity_all_pass
  /var/lib/jenkins/miniforge3/envs/climada_env/lib/python3.11/site-packages/SALib/util/__init__.py:274: FutureWarning: unique with argument that is not not a Series, Index, ExtensionArray, or np.ndarray is deprecated and will raise in a future version.
    names = list(pd.unique(groups))

climada/engine/unsequa/test/test_unsequa.py: 40 warnings
  /var/lib/jenkins/miniforge3/envs/climada_env/lib/python3.11/site-packages/pandas/core/dtypes/common.py:1636: DeprecationWarning: Converting `np.inexact` or `np.floating` to a dtype is deprecated. The current result is `float64` which is not strictly correct.
    npdtype = np.dtype(dtype)

climada/engine/unsequa/test/test_unsequa.py::TestOutput::test_save_load_pass
climada/engine/unsequa/test/test_unsequa.py::TestCalcImpact::test_calc_sensitivity_all_pass
  /var/lib/jenkins/miniforge3/envs/climada_env/lib/python3.11/site-packages/SALib/analyze/sobol.py:141: RuntimeWarning: invalid value encountered in divide
    Y = (Y - Y.mean()) / Y.std()

climada/engine/unsequa/test/test_unsequa.py::TestOutput::test_save_load_pass
  /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace/climada/engine/unsequa/unc_output.py:1172: PerformanceWarning: 
  your performance may suffer as PyTables will pickle object types that it cannot
  map directly to c-types [inferred_type->mixed,key->block1_values] [items->Index(['si', 'param', 'param2'], dtype='object')]
  
    store.put(var_name, var_val, format="fixed", complevel=9)

climada/engine/unsequa/test/test_unsequa.py::TestOutput::test_save_load_pass
  /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace/climada/engine/unsequa/unc_output.py:1172: PerformanceWarning: 
  your performance may suffer as PyTables will pickle object types that it cannot
  map directly to c-types [inferred_type->mixed-integer,key->axis0] [items->None]
  
    store.put(var_name, var_val, format="fixed", complevel=9)

climada/engine/unsequa/test/test_unsequa.py::TestOutput::test_save_load_pass
  /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace/climada/engine/unsequa/unc_output.py:1172: PerformanceWarning: 
  your performance may suffer as PyTables will pickle object types that it cannot
  map directly to c-types [inferred_type->integer,key->block0_items] [items->None]
  
    store.put(var_name, var_val, format="fixed", complevel=9)

climada/engine/unsequa/test/test_unsequa.py::TestCalcImpact::test_calc_sensitivity_all_pass
  /var/lib/jenkins/miniforge3/envs/climada_env/lib/python3.11/site-packages/SALib/analyze/pawn.py:142: RuntimeWarning: invalid value encountered in scalar divide
    cv = np.nanstd(p_ind) / mean

climada/engine/unsequa/test/test_unsequa.py::TestCalcImpact::test_calc_sensitivity_all_pass
  /var/lib/jenkins/miniforge3/envs/climada_env/lib/python3.11/site-packages/SALib/sample/saltelli.py:110: UserWarning: 
          Convergence properties of the Sobol' sequence is only valid if
          `N` (100) is equal to `2^n`.
          
    warnings.warn(msg)

climada/engine/unsequa/test/test_unsequa.py::TestCalcImpact::test_calc_sensitivity_all_pass
climada/engine/unsequa/test/test_unsequa.py::TestCalcImpact::test_calc_sensitivity_all_pass
climada/engine/unsequa/test/test_unsequa.py::TestCalcImpact::test_calc_sensitivity_all_pass
climada/engine/unsequa/test/test_unsequa.py::TestCalcImpact::test_calc_sensitivity_all_pass
climada/engine/unsequa/test/test_unsequa.py::TestCalcImpact::test_calc_sensitivity_all_pass
climada/engine/unsequa/test/test_unsequa.py::TestCalcImpact::test_calc_sensitivity_all_pass
climada/engine/unsequa/test/test_unsequa.py::TestCalcImpact::test_calc_sensitivity_all_pass
  /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace/climada/engine/unsequa/calc_base.py:540: DeprecationWarning: This method will be retired in future, please use enhanced_hdmr instead.
    sens_indices = method.analyze(problem_sa, X, Y, **sensitivity_kwargs)

climada/engine/unsequa/test/test_unsequa.py: 1400 warnings
  /var/lib/jenkins/miniforge3/envs/climada_env/lib/python3.11/site-packages/SALib/analyze/hdmr.py:688: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
    S[j] = C[0, 1] / V_Y

climada/engine/unsequa/test/test_unsequa.py: 1400 warnings
  /var/lib/jenkins/miniforge3/envs/climada_env/lib/python3.11/site-packages/SALib/analyze/hdmr.py:694: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
    S_a[j] = C[0, 0] / V_Y

climada/engine/unsequa/test/test_unsequa.py: 1400 warnings
  /var/lib/jenkins/miniforge3/envs/climada_env/lib/python3.11/site-packages/SALib/analyze/hdmr.py:697: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
    S_b[j] = C[0, 1] / V_Y

climada/engine/unsequa/test/test_unsequa.py::TestCalcImpact::test_calc_sensitivity_all_pass
  /var/lib/jenkins/miniforge3/envs/climada_env/lib/python3.11/site-packages/SALib/analyze/hdmr.py:661: RuntimeWarning: invalid value encountered in scalar divide
    F_stat = ((SSR0 - SSR1) / (p1 - p0)) / (SSR1 / (R - p1))

climada/engine/unsequa/test/test_unsequa.py::TestCalcImpact::test_calc_sensitivity_all_pass
  /var/lib/jenkins/miniforge3/envs/climada_env/lib/python3.11/site-packages/SALib/analyze/hdmr.py:688: RuntimeWarning: invalid value encountered in divide
    S[j] = C[0, 1] / V_Y

climada/engine/unsequa/test/test_unsequa.py::TestCalcImpact::test_calc_sensitivity_all_pass
  /var/lib/jenkins/miniforge3/envs/climada_env/lib/python3.11/site-packages/SALib/analyze/hdmr.py:694: RuntimeWarning: invalid value encountered in divide
    S_a[j] = C[0, 0] / V_Y

climada/engine/unsequa/test/test_unsequa.py::TestCalcImpact::test_calc_sensitivity_all_pass
  /var/lib/jenkins/miniforge3/envs/climada_env/lib/python3.11/site-packages/SALib/analyze/hdmr.py:697: RuntimeWarning: invalid value encountered in divide
    S_b[j] = C[0, 1] / V_Y

climada/engine/unsequa/test/test_unsequa.py::TestCalcImpact::test_calc_sensitivity_all_pass
  /var/lib/jenkins/miniforge3/envs/climada_env/lib/python3.11/site-packages/SALib/analyze/dgsm.py:132: RuntimeWarning: invalid value encountered in scalar divide
    dgsm = vi * (bounds[1] - bounds[0]) ** 2 / (D * np.pi**2)

climada/engine/unsequa/test/test_unsequa.py::TestCalcImpact::test_calc_sensitivity_all_pass
  /var/lib/jenkins/miniforge3/envs/climada_env/lib/python3.11/site-packages/SALib/analyze/fast.py:117: RuntimeWarning: invalid value encountered in scalar divide
    return (D1 / V), (1.0 - Dt / V)

climada/engine/unsequa/test/test_unsequa.py::TestCalcImpact::test_calc_sensitivity_all_pass
  /var/lib/jenkins/miniforge3/envs/climada_env/lib/python3.11/site-packages/SALib/sample/saltelli.py:110: UserWarning: 
          Convergence properties of the Sobol' sequence is only valid if
          `N` (24) is equal to `2^n`.
          
    warnings.warn(msg)

climada/engine/unsequa/test/test_unsequa.py::TestCalcImpact::test_calc_sensitivity_all_pass
  /var/lib/jenkins/miniforge3/envs/climada_env/lib/python3.11/site-packages/SALib/analyze/rbd_fast.py:128: RuntimeWarning: invalid value encountered in scalar divide
    return D1 / V

climada/engine/unsequa/test/test_unsequa.py::TestCalcImpact::test_calc_sensitivity_all_pass
climada/engine/unsequa/test/test_unsequa.py::TestCalcImpact::test_calc_sensitivity_all_pass
  /var/lib/jenkins/miniforge3/envs/climada_env/lib/python3.11/site-packages/SALib/analyze/morris.py:453: RuntimeWarning: invalid value encountered in subtract
    delta_variables = np.subtract(input_matrix[:, 1:, :], input_matrix[:, 0:-1, :])

climada/entity/exposures/test/test_base.py::TestFuncs::test_affected_total_value
  /var/lib/jenkins/miniforge3/envs/climada_env/lib/python3.11/site-packages/scipy/sparse/_base.py:466: SparseEfficiencyWarning: Comparing a sparse matrix with a scalar less than zero using > is inefficient, try using <= instead.
    return self.tocsr().__gt__(other)

climada/entity/tag/test/test_tag.py::TestAppend::test_append_different_increase
  /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace/climada/entity/tag/test/test_tag.py:32: DeprecatedWarning: __init__ is deprecated. This class is not supported anymore and will be removed in the next version of climada.
    tag1 = Tag("file_name1.mat", "dummy file 1")

climada/entity/tag/test/test_tag.py::TestAppend::test_append_different_increase
  /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace/climada/entity/tag/test/test_tag.py:36: DeprecatedWarning: __init__ is deprecated. This class is not supported anymore and will be removed in the next version of climada.
    tag2 = Tag("file_name2.mat", "dummy file 2")

climada/entity/tag/test/test_tag.py::TestAppend::test_append_empty
  /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace/climada/entity/tag/test/test_tag.py:59: DeprecatedWarning: __init__ is deprecated. This class is not supported anymore and will be removed in the next version of climada.
    tag1 = Tag("file_name1.mat", "dummy file 1")

climada/entity/tag/test/test_tag.py::TestAppend::test_append_empty
  /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace/climada/entity/tag/test/test_tag.py:60: DeprecatedWarning: __init__ is deprecated. This class is not supported anymore and will be removed in the next version of climada.
    tag2 = Tag()

climada/entity/tag/test/test_tag.py::TestAppend::test_append_empty
  /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace/climada/entity/tag/test/test_tag.py:66: DeprecatedWarning: __init__ is deprecated. This class is not supported anymore and will be removed in the next version of climada.
    tag1 = Tag()

climada/entity/tag/test/test_tag.py::TestAppend::test_append_empty
  /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace/climada/entity/tag/test/test_tag.py:67: DeprecatedWarning: __init__ is deprecated. This class is not supported anymore and will be removed in the next version of climada.
    tag2 = Tag("file_name1.mat", "dummy file 1")

climada/entity/tag/test/test_tag.py::TestAppend::test_append_equal_same
  /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace/climada/entity/tag/test/test_tag.py:50: DeprecatedWarning: __init__ is deprecated. This class is not supported anymore and will be removed in the next version of climada.
    tag1 = Tag("file_name1.mat", "dummy file 1")

climada/entity/tag/test/test_tag.py::TestAppend::test_append_equal_same
  /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace/climada/entity/tag/test/test_tag.py:51: DeprecatedWarning: __init__ is deprecated. This class is not supported anymore and will be removed in the next version of climada.
    tag2 = Tag("file_name1.mat", "dummy file 1")

climada/hazard/centroids/test/test_centr.py::TestCentroidsMethods::test_get_closest_point
  /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace/climada/hazard/centroids/centr.py:664: UserWarning: Geometry is in a geographic CRS. Results from 'distance' are likely incorrect. Use 'GeoSeries.to_crs()' to re-project geometries to a projected CRS before this operation.
  
    close_idx = self.geometry.distance(Point(x_lon, y_lat)).values.argmin()

climada/hazard/test/test_base.py::TestSelect::test_select_tight_pass
  /var/lib/jenkins/miniforge3/envs/climada_env/lib/python3.11/site-packages/scipy/sparse/_index.py:151: SparseEfficiencyWarning: Changing the sparsity structure of a csr_matrix is expensive. lil and dok are more efficient.
    self._set_arrayXarray(i, j, x)

climada/hazard/test/test_io.py::TestReadDefaultNetCDF::test_missing_dims
climada/hazard/test/test_io.py::TestReadDimsCoordsNetCDF::test_errors
  /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace/climada/hazard/io.py:608: FutureWarning: The return type of `Dataset.dims` will be changed to return a set of dimension names in future, in order to be more consistent with `DataArray.dims`. To access a mapping from dimension names to lengths, please use `Dataset.sizes`.
    f"{list(data.dims.keys())}"

climada/hazard/test/test_io.py::TestReadDefaultNetCDF::test_missing_dims
  /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace/climada/hazard/test/test_io.py:393: UserWarning: Converting non-nanosecond precision datetime values to nanosecond precision. This behavior can eventually be relaxed in xarray, as it is an artifact from pandas which is now beginning to support non-nanosecond precision values. This warning is caused by passing non-nanosecond np.datetime64 or np.timedelta64 values to the DataArray or Variable constructor; it can be silenced by converting the values to nanosecond precision ahead of time.
    ds = ds.expand_dims(time=[np.datetime64("2022-01-01")])

climada/hazard/test/test_storm_europe.py::TestReader::test_read_with_cent
  /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace/climada/hazard/centroids/centr.py:382: FutureWarning: The behavior of DataFrame concatenation with empty or all-NA entries is deprecated. In a future version, this will no longer exclude empty or all-NA columns when determining the result dtypes. To retain the old behavior, exclude the relevant entries before the concat operation.
    self.gdf = pd.concat([self.gdf] + self._batch_gdf, ignore_index=True)

climada/hazard/test/test_tc_tracks.py: 15 warnings
  /var/lib/jenkins/miniforge3/envs/climada_env/lib/python3.11/site-packages/xarray/core/dataarray.py:3221: DeprecationWarning: Deleting a single level of a MultiIndex is deprecated. Previously, this deleted all levels of a MultiIndex. Please also drop the following variables: {'id'} to avoid an error in the future.
    ds = self._to_temp_dataset().drop_vars(names, errors=errors)

climada/hazard/test/test_tc_tracks.py::TestIO::test_to_geodataframe_line
climada/hazard/test/test_tc_tracks.py::TestIO::test_to_geodataframe_line
climada/hazard/test/test_tc_tracks.py::TestIO::test_to_geodataframe_line
climada/hazard/test/test_tc_tracks.py::TestFuncs::test_tracks_in_exp_pass
  /var/lib/jenkins/miniforge3/envs/climada_env/lib/python3.11/site-packages/geopandas/geodataframe.py:204: FutureWarning: You are adding a column named 'geometry' to a GeoDataFrame constructed without an active geometry column. Currently, this automatically sets the active geometry column to 'geometry' but in the future that will no longer happen. Instead, either provide geometry to the GeoDataFrame constructor (GeoDataFrame(... geometry=GeoSeries()) or use `set_geometry('geometry')` to explicitly set the active geometry column.
    object.__setattr__(self, attr, val)

climada/hazard/test/test_tc_tracks.py::TestIO::test_to_geodataframe_points
  /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace/climada/hazard/test/test_tc_tracks.py:646: UserWarning: Geometry is in a geographic CRS. Results from 'buffer' are likely incorrect. Use 'GeoSeries.to_crs()' to re-project geometries to a projected CRS before this operation.
  
    gdf_points.buffer(3).unary_union.area, 348.79972062947854

climada/hazard/test/test_tc_tracks.py: 7 warnings
climada/hazard/test/test_tc_tracks_synth.py: 2 warnings
climada/hazard/test/test_trop_cyclone.py: 4 warnings
climada/hazard/test/test_trop_cyclone_windfields.py: 1 warning
  <string>:7: FutureWarning: 'H' is deprecated and will be removed in a future version. Please use 'h' instead of 'H'.

climada/hazard/test/test_tc_tracks.py::TestFuncs::test_interp_track_pass
  <string>:7: FutureWarning: 'L' is deprecated and will be removed in a future version. Please use 'ms' instead of 'L'.

climada/hazard/test/test_tc_tracks.py::TestFuncs::test_tracks_in_exp_pass
  /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace/climada/hazard/test/test_tc_tracks.py:1125: FutureWarning: The geopandas.dataset module is deprecated and will be removed in GeoPandas 1.0. You can get the original 'naturalearth_lowres' data from https://www.naturalearthdata.com/downloads/110m-cultural-vectors/.
    world = gpd.read_file(gpd.datasets.get_path("naturalearth_lowres"))

climada/hazard/test/test_tc_tracks.py::TestFuncs::test_tracks_in_exp_pass
  /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace/climada/hazard/tc_tracks.py:347: UserWarning: Geometry is in a geographic CRS. Results from 'buffer' are likely incorrect. Use 'GeoSeries.to_crs()' to re-project geometries to a projected CRS before this operation.
  
    exp_buffer = exposure.gdf.buffer(distance=buffer, resolution=0)

climada/hazard/test/test_tc_tracks.py::TestFuncs::test_tracks_in_exp_pass
  /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace/climada/hazard/tc_tracks.py:350: UserWarning: Geometry is in a geographic CRS. Results from 'buffer' are likely incorrect. Use 'GeoSeries.to_crs()' to re-project geometries to a projected CRS before this operation.
  
    tc_tracks_lines = self.to_geodataframe().buffer(distance=buffer)

climada/hazard/test/test_tc_tracks_synth.py::TestDecay::test_apply_decay_no_landfall_pass
climada/hazard/test/test_tc_tracks_synth.py::TestDecay::test_calc_decay_no_landfall_pass
climada/hazard/test/test_tc_tracks_synth.py::TestSynth::test_random_no_landfall_pass
  /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace/climada/util/coordinates.py:653: FutureWarning: `unary_union` returned None due to all-None GeoSeries. In future, `unary_union` will return 'GEOMETRYCOLLECTION EMPTY' instead.
    geom = geom.geometry.unary_union

climada/hazard/test/test_tc_tracks_synth.py::TestDecay::test_apply_decay_no_landfall_pass
climada/hazard/test/test_tc_tracks_synth.py::TestDecay::test_calc_decay_no_landfall_pass
climada/hazard/test/test_tc_tracks_synth.py::TestSynth::test_random_no_landfall_pass
  /var/lib/jenkins/miniforge3/envs/climada_env/lib/python3.11/site-packages/shapely/predicates.py:1135: RuntimeWarning: invalid value encountered in contains_xy
    return lib.contains_xy(geom, x, y, **kwargs)

climada/hazard/test/test_tc_tracks_synth.py::TestDecay::test_decay_end_ocean
climada/hazard/test/test_tc_tracks_synth.py::TestDecay::test_decay_penv_gt_pcen
climada/hazard/test/test_tc_tracks_synth.py::TestDecay::test_wrong_decay_pass
climada/hazard/test/test_tc_tracks_synth.py::TestSynth::test_random_walk_single_point
  /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace/climada/hazard/tc_tracks_synth.py:1052: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
    rndn = 0.1 * float(np.abs(np.random.normal(size=1) * 5) + 6)

climada/hazard/test/test_tc_tracks_synth.py::TestDecay::test_func_decay_p_pass
  /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace/climada/hazard/tc_tracks_synth.py:1153: RuntimeWarning: invalid value encountered in divide
    return -np.log((ps_y - p_y) / (ps_y - 1.0)) / x_val

climada/hazard/test/test_tc_tracks_synth.py::TestDecay::test_func_decay_v_pass
  /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace/climada/hazard/tc_tracks_synth.py:1142: RuntimeWarning: invalid value encountered in divide
    return -np.log(v_y) / x_val

climada/hazard/test/test_trop_cyclone.py::TestReader::test_cross_antimeridian
  /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace/climada/hazard/test/test_trop_cyclone.py:176: DeprecatedWarning: from_lat_lon is deprecated. This method will be removed in a future version. Simply use the constructor instead.
    cen = Centroids.from_lat_lon([-16.95, -16.8, -16.8], [179.9, 180.1, -179.9])

climada/hazard/test/test_trop_cyclone.py::TestReader::test_cross_antimeridian
  /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace/climada/hazard/test/test_trop_cyclone.py:177: DeprecatedWarning: set_dist_coast is deprecated. This method is futile and will be removed in a future version. `Centroids.get_dist_coast` can be run without initialization.
    cen.set_dist_coast(precomputed=True)

climada/util/calibrate/test/test_base.py: 5 warnings
climada/util/calibrate/test/test_bayesian_optimizer.py: 3 warnings
climada/util/calibrate/test/test_scipy_optimizer.py: 3 warnings
  /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace/climada/util/calibrate/test/test_base.py:49: DeprecatedWarning: from_lat_lon is deprecated. This method will be removed in a future version. Simply use the constructor instead.
    centroids = Centroids.from_lat_lon(lat=lat, lon=lon)

climada/util/calibrate/test/test_bayesian_optimizer.py::TestBayesianOptimizerController::test_optimizer_params
  /var/lib/jenkins/miniforge3/envs/climada_env/lib/python3.11/unittest/case.py:1176: DeprecationWarning: assertDictContainsSubset is deprecated
    warnings.warn('assertDictContainsSubset is deprecated',

climada/util/calibrate/test/test_bayesian_optimizer.py::TestBayesianOptimizerOutput::test_cycle
  /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace/climada/util/calibrate/bayesian_optimizer.py:192: UserWarning: 
  Data point [2.] is outside the bounds of the parameter space. 
    p_space.register(

climada/util/calibrate/test/test_bayesian_optimizer.py::TestBayesianOptimizerOutput::test_cycle
  /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace/climada/util/calibrate/bayesian_optimizer.py:192: UserWarning: 
  Data point [1.] is outside the bounds of the parameter space. 
    p_space.register(

climada/util/calibrate/test/test_bayesian_optimizer.py::TestBayesianOptimizerOutput::test_cycle
  /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace/climada/util/calibrate/bayesian_optimizer.py:192: UserWarning: 
  Data point [-0.9] is outside the bounds of the parameter space. 
    p_space.register(

climada/util/test/test_coordinates.py::TestGetGeodata::test_all_points_on_sea
  /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace/climada/util/coordinates.py:1621: FutureWarning: `unary_union` returned None due to all-None GeoSeries. In future, `unary_union` will return 'GEOMETRYCOLLECTION EMPTY' instead.
    total_land = countries.geometry.unary_union

climada/util/test/test_coordinates.py::TestGetGeodata::test_get_country_geometries_all_pass
  /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace/climada/util/test/test_coordinates.py:1456: UserWarning: Geometry is in a geographic CRS. Results from 'area' are likely incorrect. Use 'GeoSeries.to_crs()' to re-project geometries to a projected CRS before this operation.
  
    self.assertAlmostEqual(res.area[0], 1.639510995900778)

climada/util/test/test_lines_polys_handler.py::TestExposureGeomToPnt::test_point_exposure_from_lines
climada/util/test/test_lines_polys_handler.py::TestExposureGeomToPnt::test_point_exposure_from_lines
climada/util/test/test_lines_polys_handler.py::TestGeomImpactCalcs::test_calc_geom_impact_lines
climada/util/test/test_lines_polys_handler.py::TestGeomImpactCalcs::test_calc_geom_impact_mixed
climada/util/test/test_lines_polys_handler.py::TestGeomImpactCalcs::test_calc_geom_impact_mixed
climada/util/test/test_lines_polys_handler.py::TestGeomImpactCalcs::test_impact_pnt_agg
climada/util/test/test_lines_polys_handler.py::TestGdfGeomToPnt::test_gdf_line_to_pnt
climada/util/test/test_lines_polys_handler.py::TestGdfGeomToPnt::test_gdf_line_to_pnt
  /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace/climada/util/lines_polys_handler.py:957: UserWarning: Geometry is in a geographic CRS. Results from 'length' are likely incorrect. Use 'GeoSeries.to_crs()' to re-project geometries to a projected CRS before this operation.
  
    line_lengths = gdf_lines.length

climada/util/test/test_lines_polys_handler.py: 13 warnings
  /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace/climada/util/lines_polys_handler.py:638: FutureWarning: The 'axis' keyword in DataFrame.groupby is deprecated and will be removed in a future version.
    group = gdf_pnts.groupby(axis=0, level=0)

climada/util/test/test_lines_polys_handler.py::TestExposureGeomToPnt::test_point_exposure_from_polygons_on_grid
climada/util/test/test_lines_polys_handler.py::TestExposureGeomToPnt::test_point_exposure_from_polygons_on_grid
climada/util/test/test_lines_polys_handler.py::TestGeomImpactCalcs::test_calc_grid_impact_polys
  /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace/climada/util/lines_polys_handler.py:487: DeprecatedWarning: set_lat_lon is deprecated. latitude and longitude columns are no longer meaningful in Exposures` GeoDataFrames. They can be retrieved from Exposures.latitude and .longitude properties
    exp_pnt.set_lat_lon()

climada/util/test/test_lines_polys_handler.py::TestLPUtils::test_get_equalarea_proj
  /var/lib/jenkins/miniforge3/envs/climada_env/lib/python3.11/site-packages/geopandas/geoseries.py:648: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`
    val = getattr(super(), mtd)(*args, **kwargs)

climada/util/test/test_plot.py::TestPlots::test_plot_from_gdf_log
  /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace/climada/util/test/test_plot.py:231: FutureWarning: You are adding a column named 'geometry' to a GeoDataFrame constructed without an active geometry column. Currently, this automatically sets the active geometry column to 'geometry' but in the future that will no longer happen. Instead, either provide geometry to the GeoDataFrame constructor (GeoDataFrame(... geometry=GeoSeries()) or use `set_geometry('geometry')` to explicitly set the active geometry column.
    return_periods["geometry"] = (

climada/util/test/test_plot.py::TestPlots::test_plot_from_gdf_no_log
  /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace/climada/util/test/test_plot.py:208: FutureWarning: You are adding a column named 'geometry' to a GeoDataFrame constructed without an active geometry column. Currently, this automatically sets the active geometry column to 'geometry' but in the future that will no longer happen. Instead, either provide geometry to the GeoDataFrame constructor (GeoDataFrame(... geometry=GeoSeries()) or use `set_geometry('geometry')` to explicitly set the active geometry column.
    return_periods["geometry"] = (

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
- generated xml file: /var/lib/jenkins/jobs/climada_branches/branches/PR-989/workspace/tests_xml/tests.xml -

---------- coverage: platform linux, python 3.11.6-final-0 -----------
Name                                                     Stmts   Miss  Cover
----------------------------------------------------------------------------
climada/__init__.py                                         20      6    70%
climada/engine/calibration_opt.py                          149    103    31%
climada/engine/cost_benefit.py                             432    181    58%
climada/engine/forecast.py                                 351     31    91%
climada/engine/impact.py                                   604    165    73%
climada/engine/impact_calc.py                              145      2    99%
climada/engine/impact_data.py                              393    146    63%
climada/engine/unsequa/calc_base.py                        155      4    97%
climada/engine/unsequa/calc_cost_benefit.py                 92      2    98%
climada/engine/unsequa/calc_delta_climate.py               110     10    91%
climada/engine/unsequa/calc_impact.py                       85      2    98%
climada/engine/unsequa/input_var.py                        267     87    67%
climada/engine/unsequa/unc_output.py                       451    105    77%
climada/entity/disc_rates/base.py                          122     23    81%
climada/entity/entity_def.py                                55      9    84%
climada/entity/exposures/base.py                           470     85    82%
climada/entity/exposures/litpop/gpw_population.py           32     24    25%
climada/entity/exposures/litpop/litpop.py                  337    202    40%
climada/entity/exposures/litpop/nightlight.py              240    180    25%
climada/entity/impact_funcs/base.py                         75     18    76%
climada/entity/impact_funcs/impact_func_set.py             249     43    83%
climada/entity/impact_funcs/storm_europe.py                 40      4    90%
climada/entity/impact_funcs/trop_cyclone.py                113     12    89%
climada/entity/measures/base.py                            155     18    88%
climada/entity/measures/measure_set.py                     209     39    81%
climada/entity/tag/tag.py                                   44      7    84%
climada/hazard/base.py                                     319     34    89%
climada/hazard/centroids/centr.py                          339     17    95%
climada/hazard/io.py                                       345     85    75%
climada/hazard/plot.py                                      91     78    14%
climada/hazard/storm_europe.py                             355    149    58%
climada/hazard/tc_tracks.py                                952    191    80%
climada/hazard/tc_tracks_synth.py                          420    166    60%
climada/hazard/trop_cyclone/trop_cyclone.py                192     73    62%
climada/hazard/trop_cyclone/trop_cyclone_windfields.py     308      7    98%
climada/util/api_client.py                                 381    166    56%
climada/util/calibrate/base.py                             107     25    77%
climada/util/calibrate/bayesian_optimizer.py               266     75    72%
climada/util/checker.py                                     54      4    93%
climada/util/config.py                                     173     11    94%
climada/util/coordinates.py                                941    152    84%
climada/util/dwd_icon_loader.py                             89     33    63%
climada/util/files_handler.py                               73     21    71%
climada/util/finance.py                                    178     34    81%
climada/util/hdf5_handler.py                                33      1    97%
climada/util/interpolation.py                               94      3    97%
climada/util/lines_polys_handler.py                        235     31    87%
climada/util/plot.py                                       316     65    79%
climada/util/save.py                                        25      6    76%
climada/util/select.py                                      18      1    94%
climada/util/value_representation.py                        58      4    93%
climada/util/yearsets.py                                    65      3    95%
----------------------------------------------------------------------------
TOTAL                                                    12065   2943    76%

19 files skipped due to complete coverage.
Coverage HTML written to dir coverage
Coverage XML written to file coverage.xml

=========================== short test summary info ============================
FAILED climada/hazard/centroids/test/test_centr.py::TestCentroidsMethods::test_append - AssertionError: False is not true
FAILED climada/hazard/centroids/test/test_centr.py::TestCentroidsMethods::test_append_pass - AssertionError: False is not true
FAILED climada/hazard/centroids/test/test_centr.py::TestCentroidsMethods::test_union - AttributeError: 'Centroids' object has no attribute '_batch_gdf'
========== 3 failed, 711 passed, 49624 warnings in 564.85s (0:09:24) ===========
make: *** [Makefile:23: unit_test] Error 1

Declarative: Post Actions / Archive JUnit-formatted test results

Warning in junit step, with arguments tests_xml/*.xml.

3 tests failed

Details

  • Declarative: Checkout SCM (13 sec)
    • ci (9 min 34 sec)
      • lint (2 ms)
        • lint (1 min 54 sec)
      • unit_test (9 min 33 sec)
        • unit_test (9 min 30 sec)
          Error: script returned exit code 2
    • Declarative: Post Actions (3.3 sec)
      Unstable: 3 tests failed