Skip to content

remove unnecessary 'else:' #87

remove unnecessary 'else:'

remove unnecessary 'else:' #87

This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / Unit Test Results Python 3.9 failed Nov 3, 2023 in 0s

10 errors in 27s

10 tests  ±0     0 ✔️ ±0   27s ⏱️ +5s
  1 suites ±0     0 💤 ±0 
  1 files   ±0     0 ±0   10 🔥 ±0 

Results for commit 5c586f0. ± Comparison against earlier commit e1721cf.

Annotations

Check failure on line 0 in /

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results Python 3.9

climada.engine.test.test_cost_benefit with error

tests_xml/tests.xml [took 0s]
Raw output
collection failure
../../../micromamba/envs/climada_env_3.9/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:
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
../../../micromamba/envs/climada_env_3.9/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,
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/xyzservices/lib.py:46: in __getattr__
    raise AttributeError(key) from err
E   AttributeError: Stamen

Check failure on line 0 in /

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results Python 3.9

climada.engine.test.test_forecast with error

tests_xml/tests.xml [took 0s]
Raw output
collection failure
../../../micromamba/envs/climada_env_3.9/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:
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
../../../micromamba/envs/climada_env_3.9/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,
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/xyzservices/lib.py:46: in __getattr__
    raise AttributeError(key) from err
E   AttributeError: Stamen

Check failure on line 0 in /

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results Python 3.9

climada.engine.test.test_impact with error

tests_xml/tests.xml [took 0s]
Raw output
collection failure
../../../micromamba/envs/climada_env_3.9/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:
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
../../../micromamba/envs/climada_env_3.9/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,
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/xyzservices/lib.py:46: in __getattr__
    raise AttributeError(key) from err
E   AttributeError: Stamen

Check failure on line 0 in /

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results Python 3.9

climada.engine.test.test_impact_calc with error

tests_xml/tests.xml [took 0s]
Raw output
collection failure
../../../micromamba/envs/climada_env_3.9/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:
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
../../../micromamba/envs/climada_env_3.9/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,
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/xyzservices/lib.py:46: in __getattr__
    raise AttributeError(key) from err
E   AttributeError: Stamen

Check failure on line 0 in /

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results Python 3.9

climada.engine.test.test_impact_data with error

tests_xml/tests.xml [took 0s]
Raw output
collection failure
../../../micromamba/envs/climada_env_3.9/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:
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
../../../micromamba/envs/climada_env_3.9/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,
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/xyzservices/lib.py:46: in __getattr__
    raise AttributeError(key) from err
E   AttributeError: Stamen

Check failure on line 0 in /

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results Python 3.9

climada.engine.unsequa.test.test_unsequa with error

tests_xml/tests.xml [took 0s]
Raw output
collection failure
../../../micromamba/envs/climada_env_3.9/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:
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
../../../micromamba/envs/climada_env_3.9/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,
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/xyzservices/lib.py:46: in __getattr__
    raise AttributeError(key) from err
E   AttributeError: Stamen

Check failure on line 0 in /

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results Python 3.9

climada.entity.impact_funcs.test.test_ws with error

tests_xml/tests.xml [took 0s]
Raw output
collection failure
../../../micromamba/envs/climada_env_3.9/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:
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
../../../micromamba/envs/climada_env_3.9/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
    ???
../../../micromamba/envs/climada_env_3.9/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,
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/xyzservices/lib.py:46: in __getattr__
    raise AttributeError(key) from err
E   AttributeError: Stamen

Check failure on line 0 in /

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results Python 3.9

climada.util.calibrate.test.test_calibrate with error

tests_xml/tests.xml [took 0s]
Raw output
collection failure
ImportError while importing test module '/home/runner/work/climada_python/climada_python/climada/util/calibrate/test/test_calibrate.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../../micromamba/envs/climada_env_3.9/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'

Check failure on line 0 in /

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results Python 3.9

climada.util.test.test_lines_polys_handler with error

tests_xml/tests.xml [took 0s]
Raw output
collection failure
../../../micromamba/envs/climada_env_3.9/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:
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
../../../micromamba/envs/climada_env_3.9/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
    ???
../../../micromamba/envs/climada_env_3.9/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,
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/xyzservices/lib.py:46: in __getattr__
    raise AttributeError(key) from err
E   AttributeError: Stamen

Check failure on line 0 in /

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results Python 3.9

climada.util.test.test_yearsets with error

tests_xml/tests.xml [took 0s]
Raw output
collection failure
../../../micromamba/envs/climada_env_3.9/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:
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
../../../micromamba/envs/climada_env_3.9/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
    ???
../../../micromamba/envs/climada_env_3.9/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,
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/xyzservices/lib.py:46: in __getattr__
    raise AttributeError(key) from err
E   AttributeError: Stamen