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

Add function to plot Impf variability of calibration #791

Merged

docstring update

dc1f1af
Select commit
Loading
Failed to load commit list.
Merged

Add function to plot Impf variability of calibration #791

docstring update
dc1f1af
Select commit
Loading
Failed to load commit list.
Jenkins - WCR / Jenkins / Unit Tests failed Nov 14, 2023 in 2m 51s

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/ python -m pip install bayesian-optimization make unit_test.

script returned exit code 2
Build log
Collecting bayesian-optimization
  Using cached bayesian_optimization-1.4.3-py3-none-any.whl (18 kB)
Requirement already satisfied: numpy>=1.9.0 in /home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages (from bayesian-optimization) (1.26.0)
Requirement already satisfied: scipy>=1.0.0 in /home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages (from bayesian-optimization) (1.11.3)
Requirement already satisfied: scikit-learn>=0.18.0 in /home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages (from bayesian-optimization) (1.3.2)
Requirement already satisfied: colorama>=0.4.6 in /home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages (from bayesian-optimization) (0.4.6)
Requirement already satisfied: joblib>=1.1.1 in /home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages (from scikit-learn>=0.18.0->bayesian-optimization) (1.3.2)
Requirement already satisfied: threadpoolctl>=2.0.0 in /home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages (from scikit-learn>=0.18.0->bayesian-optimization) (3.2.0)
Installing collected packages: bayesian-optimization
Successfully installed bayesian-optimization-1.4.3
pytest --junitxml=tests_xml/tests.xml --cov --cov-config=.coveragerc --cov-report html --cov-report xml --cov-report term:skip-covered --ignore=climada/test climada/
============================= test session starts ==============================
platform linux -- Python 3.9.18, pytest-7.4.3, pluggy-1.3.0
rootdir: /var/lib/jenkins/jobs/climada_branches/branches/feature-add-.8s4lb9.ability-plot/workspace
plugins: subtests-0.11.0, cov-4.1.0
collected 495 items / 10 errors

==================================== ERRORS ====================================
__________ ERROR collecting climada/engine/test/test_cost_benefit.py ___________
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/xyzservices/lib.py:44: in __getattr__
    return self.__getitem__(key)
E   KeyError: 'Stamen'

The above exception was the direct cause of the following exception:
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:972: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:228: in _call_with_frames_removed
    ???
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:972: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:228: in _call_with_frames_removed
    ???
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:986: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:680: in _load_unlocked
    ???
<frozen importlib._bootstrap_external>:850: in exec_module
    ???
<frozen importlib._bootstrap>:228: in _call_with_frames_removed
    ???
climada/engine/__init__.py:21: in <module>
    from .impact import *
climada/engine/impact.py:57: in <module>
    class Impact():
climada/engine/impact.py:676: in Impact
    url=ctx.providers.Stamen.Terrain,
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/xyzservices/lib.py:46: in __getattr__
    raise AttributeError(key) from err
E   AttributeError: Stamen
____________ ERROR collecting climada/engine/test/test_forecast.py _____________
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/xyzservices/lib.py:44: in __getattr__
    return self.__getitem__(key)
E   KeyError: 'Stamen'

The above exception was the direct cause of the following exception:
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:972: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:228: in _call_with_frames_removed
    ???
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:972: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:228: in _call_with_frames_removed
    ???
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:986: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:680: in _load_unlocked
    ???
<frozen importlib._bootstrap_external>:850: in exec_module
    ???
<frozen importlib._bootstrap>:228: in _call_with_frames_removed
    ???
climada/engine/__init__.py:21: in <module>
    from .impact import *
climada/engine/impact.py:57: in <module>
    class Impact():
climada/engine/impact.py:676: in Impact
    url=ctx.providers.Stamen.Terrain,
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/xyzservices/lib.py:46: in __getattr__
    raise AttributeError(key) from err
E   AttributeError: Stamen
_____________ ERROR collecting climada/engine/test/test_impact.py ______________
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/xyzservices/lib.py:44: in __getattr__
    return self.__getitem__(key)
E   KeyError: 'Stamen'

The above exception was the direct cause of the following exception:
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:972: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:228: in _call_with_frames_removed
    ???
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:972: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:228: in _call_with_frames_removed
    ???
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:986: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:680: in _load_unlocked
    ???
<frozen importlib._bootstrap_external>:850: in exec_module
    ???
<frozen importlib._bootstrap>:228: in _call_with_frames_removed
    ???
climada/engine/__init__.py:21: in <module>
    from .impact import *
climada/engine/impact.py:57: in <module>
    class Impact():
climada/engine/impact.py:676: in Impact
    url=ctx.providers.Stamen.Terrain,
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/xyzservices/lib.py:46: in __getattr__
    raise AttributeError(key) from err
E   AttributeError: Stamen
___________ ERROR collecting climada/engine/test/test_impact_calc.py ___________
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/xyzservices/lib.py:44: in __getattr__
    return self.__getitem__(key)
E   KeyError: 'Stamen'

The above exception was the direct cause of the following exception:
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:972: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:228: in _call_with_frames_removed
    ???
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:972: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:228: in _call_with_frames_removed
    ???
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:986: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:680: in _load_unlocked
    ???
<frozen importlib._bootstrap_external>:850: in exec_module
    ???
<frozen importlib._bootstrap>:228: in _call_with_frames_removed
    ???
climada/engine/__init__.py:21: in <module>
    from .impact import *
climada/engine/impact.py:57: in <module>
    class Impact():
climada/engine/impact.py:676: in Impact
    url=ctx.providers.Stamen.Terrain,
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/xyzservices/lib.py:46: in __getattr__
    raise AttributeError(key) from err
E   AttributeError: Stamen
___________ ERROR collecting climada/engine/test/test_impact_data.py ___________
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/xyzservices/lib.py:44: in __getattr__
    return self.__getitem__(key)
E   KeyError: 'Stamen'

The above exception was the direct cause of the following exception:
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:972: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:228: in _call_with_frames_removed
    ???
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:972: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:228: in _call_with_frames_removed
    ???
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:986: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:680: in _load_unlocked
    ???
<frozen importlib._bootstrap_external>:850: in exec_module
    ???
<frozen importlib._bootstrap>:228: in _call_with_frames_removed
    ???
climada/engine/__init__.py:21: in <module>
    from .impact import *
climada/engine/impact.py:57: in <module>
    class Impact():
climada/engine/impact.py:676: in Impact
    url=ctx.providers.Stamen.Terrain,
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/xyzservices/lib.py:46: in __getattr__
    raise AttributeError(key) from err
E   AttributeError: Stamen
_________ ERROR collecting climada/engine/unsequa/test/test_unsequa.py _________
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/xyzservices/lib.py:44: in __getattr__
    return self.__getitem__(key)
E   KeyError: 'Stamen'

The above exception was the direct cause of the following exception:
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:972: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:228: in _call_with_frames_removed
    ???
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:972: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:228: in _call_with_frames_removed
    ???
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:972: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:228: in _call_with_frames_removed
    ???
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:986: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:680: in _load_unlocked
    ???
<frozen importlib._bootstrap_external>:850: in exec_module
    ???
<frozen importlib._bootstrap>:228: in _call_with_frames_removed
    ???
climada/engine/__init__.py:21: in <module>
    from .impact import *
climada/engine/impact.py:57: in <module>
    class Impact():
climada/engine/impact.py:676: in Impact
    url=ctx.providers.Stamen.Terrain,
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/xyzservices/lib.py:46: in __getattr__
    raise AttributeError(key) from err
E   AttributeError: Stamen
_________ ERROR collecting climada/entity/impact_funcs/test/test_ws.py _________
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/xyzservices/lib.py:44: in __getattr__
    return self.__getitem__(key)
E   KeyError: 'Stamen'

The above exception was the direct cause of the following exception:
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:986: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:680: in _load_unlocked
    ???
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
climada/entity/impact_funcs/test/test_ws.py:25: in <module>
    from climada.entity.impact_funcs.storm_europe import ImpfStormEurope
climada/entity/impact_funcs/storm_europe.py:29: in <module>
    from climada.engine.calibration_opt import init_impf
climada/engine/__init__.py:21: in <module>
    from .impact import *
climada/engine/impact.py:57: in <module>
    class Impact():
climada/engine/impact.py:676: in Impact
    url=ctx.providers.Stamen.Terrain,
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/xyzservices/lib.py:46: in __getattr__
    raise AttributeError(key) from err
E   AttributeError: Stamen
________ ERROR collecting climada/util/calibrate/test/test_calibrate.py ________
ImportError while importing test module '/var/lib/jenkins/jobs/climada_branches/branches/feature-add-.8s4lb9.ability-plot/workspace/climada/util/calibrate/test/test_calibrate.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
climada/util/calibrate/__init__.py:3: in <module>
    from .base import Input, OutputEvaluator
climada/util/calibrate/base.py:12: in <module>
    import seaborn as sns
E   ModuleNotFoundError: No module named 'seaborn'
________ ERROR collecting climada/util/test/test_lines_polys_handler.py ________
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/xyzservices/lib.py:44: in __getattr__
    return self.__getitem__(key)
E   KeyError: 'Stamen'

The above exception was the direct cause of the following exception:
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:986: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:680: in _load_unlocked
    ???
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
climada/util/test/test_lines_polys_handler.py:34: in <module>
    import climada.util.lines_polys_handler as u_lp
climada/util/lines_polys_handler.py:31: in <module>
    from climada.engine import ImpactCalc
climada/engine/__init__.py:21: in <module>
    from .impact import *
climada/engine/impact.py:57: in <module>
    class Impact():
climada/engine/impact.py:676: in Impact
    url=ctx.providers.Stamen.Terrain,
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/xyzservices/lib.py:46: in __getattr__
    raise AttributeError(key) from err
E   AttributeError: Stamen
_____________ ERROR collecting climada/util/test/test_yearsets.py ______________
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/xyzservices/lib.py:44: in __getattr__
    return self.__getitem__(key)
E   KeyError: 'Stamen'

The above exception was the direct cause of the following exception:
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:986: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:680: in _load_unlocked
    ???
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
climada/util/test/test_yearsets.py:27: in <module>
    from climada.engine import Impact
climada/engine/__init__.py:21: in <module>
    from .impact import *
climada/engine/impact.py:57: in <module>
    class Impact():
climada/engine/impact.py:676: in Impact
    url=ctx.providers.Stamen.Terrain,
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/xyzservices/lib.py:46: in __getattr__
    raise AttributeError(key) from err
E   AttributeError: Stamen
=============================== warnings summary ===============================
climada/util/__init__.py:25
  /var/lib/jenkins/jobs/climada_branches/branches/feature-add-.8s4lb9.ability-plot/workspace/climada/util/__init__.py:25: FionaDeprecationWarning: This function will be removed in version 2.0. Please use CRS.from_epsg() instead.
    from .constants import *

../../../../../../../../home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/dask/dataframe/_pyarrow_compat.py:17
  /home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/dask/dataframe/_pyarrow_compat.py:17: FutureWarning: Minimal version of pyarrow will soon be increased to 14.0.1. You are using 11.0.0. Please consider upgrading.
    warnings.warn(

../../../../../../../../home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/pycountry/__init__.py:10
  /home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/pycountry/__init__.py:10: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
    import pkg_resources

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

../../../../../../../../home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/pandas_datareader/compat/__init__.py:13
  /home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/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")

../../../../../../../../home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/pandas_datareader/compat/__init__.py:14
  /home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/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")

../../../../../../../../home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/pandas_datareader/compat/__init__.py:15
  /home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/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/util/hdf5_handler.py:65
climada/util/hdf5_handler.py:65
climada/util/hdf5_handler.py:65
climada/util/hdf5_handler.py:65
climada/util/hdf5_handler.py:65
climada/util/hdf5_handler.py:65
climada/util/hdf5_handler.py:65
climada/util/hdf5_handler.py:65
climada/util/hdf5_handler.py:65
  /var/lib/jenkins/jobs/climada_branches/branches/feature-add-.8s4lb9.ability-plot/workspace/climada/util/hdf5_handler.py:65: 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)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
- generated xml file: /var/lib/jenkins/jobs/climada_branches/branches/feature-add-.8s4lb9.ability-plot/workspace/tests_xml/tests.xml -

---------- coverage: platform linux, python 3.9.18-final-0 -----------
Name                                                   Stmts   Miss Branch BrPart  Cover
----------------------------------------------------------------------------------------
climada/__init__.py                                       20      6     10      1    77%
climada/engine/__init__.py                                 3      2      0      0    33%
climada/engine/impact.py                                 588    536    223      1     7%
climada/entity/disc_rates/base.py                        108     78     24      0    23%
climada/entity/disc_rates/test/test_base.py              109     81      0      0    26%
climada/entity/entity_def.py                              55     35     16      0    28%
climada/entity/exposures/base.py                         420    347    163      1    13%
climada/entity/exposures/litpop/gpw_population.py         32     24     12      0    18%
climada/entity/exposures/litpop/litpop.py                330    285    164      0     9%
climada/entity/exposures/litpop/nightlight.py            235    199     98      0    11%
climada/entity/exposures/test/test_base.py               356    306      4      0    14%
climada/entity/exposures/test/test_litpop.py             174    144     14      0    16%
climada/entity/exposures/test/test_mat.py                 87     70      0      0    20%
climada/entity/exposures/test/test_nightlight.py          38     28      2      0    25%
climada/entity/impact_funcs/base.py                       62     44      6      0    26%
climada/entity/impact_funcs/impact_func_set.py           247    212    110      0    10%
climada/entity/impact_funcs/storm_europe.py               40     34      2      0    14%
climada/entity/impact_funcs/test/test_base.py             28     21      0      0    25%
climada/entity/impact_funcs/test/test_imp_fun_set.py     401    365     12      0     9%
climada/entity/impact_funcs/test/test_tc.py               83     68      0      0    18%
climada/entity/impact_funcs/test/test_ws.py               21     18      0      0    14%
climada/entity/impact_funcs/trop_cyclone.py              113     88     28      0    19%
climada/entity/measures/base.py                          153    127     44      0    13%
climada/entity/measures/measure_set.py                   207    175     86      0    11%
climada/entity/measures/test/test_base.py                266    235     10      0    11%
climada/entity/measures/test/test_meas_set.py            293    257      8      0    12%
climada/entity/tag/__init__.py                             6      1      0      0    83%
climada/entity/tag/tag.py                                 44     27     20      0    27%
climada/entity/tag/test/test_tag.py                       29     23      0      0    21%
climada/entity/test/test_entity.py                        57     40      0      0    30%
climada/hazard/base.py                                   812    705    393      0     9%
climada/hazard/centroids/centr.py                        533    405    232      3    17%
climada/hazard/centroids/test/test_centr.py              113     92      0      0    19%
climada/hazard/centroids/test/test_vec_ras.py            437    379     14      0    13%
climada/hazard/storm_europe.py                           357    313    122      0     9%
climada/hazard/tc_clim_change.py                          27     21      8      0    17%
climada/hazard/tc_tracks.py                              939    826    427      0     8%
climada/hazard/tc_tracks_synth.py                        418    378    150      0     7%
climada/hazard/test/test_base.py                         811    722     12      0    11%
climada/hazard/test/test_base_xarray.py                  253    213     14      0    15%
climada/hazard/test/test_storm_europe.py                  84     65      0      0    23%
climada/hazard/test/test_tc_cc.py                         26     21      2      0    18%
climada/hazard/test/test_tc_tracks.py                    676    609     42      0     9%
climada/hazard/test/test_tc_tracks_synth.py              289    253     26      0    11%
climada/hazard/test/test_trop_cyclone.py                 281    239     28      0    14%
climada/hazard/trop_cyclone.py                           413    347    112      0    13%
climada/util/__init__.py                                  19      8      8      0    41%
climada/util/api_client.py                               376    183    158     21    44%
climada/util/calibrate/__init__.py                         4      3      0      0    25%
climada/util/calibrate/base.py                           134    125     38      0     5%
climada/util/checker.py                                   50     38     32      0    15%
climada/util/config.py                                   162     44     80     13    68%
climada/util/coordinates.py                              956    849    378      0     8%
climada/util/dates_times.py                               28     18     14      0    24%
climada/util/dwd_icon_loader.py                           89     76     34      0    11%
climada/util/files_handler.py                             73     56     34      0    16%
climada/util/finance.py                                  173    144     60      0    12%
climada/util/hdf5_handler.py                              33     12     14      1    60%
climada/util/lines_polys_handler.py                      236    224     80      0     4%
climada/util/plot.py                                     291    254    144      0     9%
climada/util/save.py                                      25     17      4      0    28%
climada/util/select.py                                    18     14      9      0    15%
climada/util/test/test__init__.py                         15     10      0      0    33%
climada/util/test/test_checker.py                         47     34      0      0    28%
climada/util/test/test_config.py                          39     31      0      0    21%
climada/util/test/test_coordinates.py                    921    806     78      0    12%
climada/util/test/test_dates_times.py                     32     21      0      0    34%
climada/util/test/test_dwd_icon.py                        38     23      0      0    39%
climada/util/test/test_files.py                           77     57      6      0    24%
climada/util/test/test_finance.py                        122     97      0      0    20%
climada/util/test/test_hdf5.py                            91     78      0      0    14%
climada/util/test/test_lines_polys_handler.py            277    267     14      0     3%
climada/util/test/test_plot.py                            84     69      0      0    18%
climada/util/test/test_save.py                            25     14      0      0    44%
climada/util/test/test_select.py                          22     15      0      0    32%
climada/util/test/test_value_representation.py            83     68     10      0    16%
climada/util/test/test_yearsets.py                        40     35      0      0    12%
climada/util/value_representation.py                      49     39     20      0    14%
climada/util/yearsets.py                                  68     56     28      0    12%
----------------------------------------------------------------------------------------
TOTAL                                                  15840  13249   3883     41    14%

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

=========================== short test summary info ============================
ERROR climada/engine/test/test_cost_benefit.py - AttributeError: Stamen
ERROR climada/engine/test/test_forecast.py - AttributeError: Stamen
ERROR climada/engine/test/test_impact.py - AttributeError: Stamen
ERROR climada/engine/test/test_impact_calc.py - AttributeError: Stamen
ERROR climada/engine/test/test_impact_data.py - AttributeError: Stamen
ERROR climada/engine/unsequa/test/test_unsequa.py - AttributeError: Stamen
ERROR climada/entity/impact_funcs/test/test_ws.py - AttributeError: Stamen
ERROR climada/util/calibrate/test/test_calibrate.py
ERROR climada/util/test/test_lines_polys_handler.py - AttributeError: Stamen
ERROR climada/util/test/test_yearsets.py - AttributeError: Stamen
!!!!!!!!!!!!!!!!!!! Interrupted: 10 errors during collection !!!!!!!!!!!!!!!!!!!
======================= 16 warnings, 10 errors in 29.49s =======================
make: *** [Makefile:23: unit_test] Error 2

Declarative: Post Actions / Archive JUnit-formatted test results

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

10 tests failed

Details

  • Declarative: Checkout SCM (17 sec)
    • ci (2 min 30 sec)
      • lint (1 ms)
        • lint (2 min 27 sec)
      • unit_test (38 sec)
        • unit_test (36 sec)
          Error: script returned exit code 2
    • Declarative: Post Actions (2.2 sec)
      Unstable: 10 tests failed