Merge branch 'develop' into feature/centroids_as_gdf #23
GitHub Actions / Unit Test Results Python 3.9
failed
Sep 28, 2023 in 0s
5 errors in 39s
Annotations
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/_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:178: in exec_module
exec(co, module.__dict__)
climada/engine/test/test_impact.py:37: in <module>
from climada.hazard.test.test_base import HAZ_TEST_TC
<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:169: in exec_module
source_stat, co = _rewrite_test(fn, self.config)
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:351: in _rewrite_test
tree = ast.parse(source, filename=strfn)
../../../micromamba/envs/climada_env_3.9/lib/python3.9/ast.py:50: in parse
return compile(source, filename, mode, flags,
E File "/home/runner/work/climada_python/climada_python/climada/hazard/test/test_base.py", line 836
E centroids=Centroids(
E IndentationError: unexpected indent
github-actions / Unit Test Results Python 3.9
climada.hazard.centroids.test.test_vec_ras with error
tests_xml/tests.xml [took 0s]
Raw output
collection failure
../../../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:169: in exec_module
source_stat, co = _rewrite_test(fn, self.config)
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:351: in _rewrite_test
tree = ast.parse(source, filename=strfn)
../../../micromamba/envs/climada_env_3.9/lib/python3.9/ast.py:50: in parse
return compile(source, filename, mode, flags,
E File "/home/runner/work/climada_python/climada_python/climada/hazard/centroids/test/test_vec_ras.py", line 428
E def test_size_pass(self):
E IndentationError: unexpected indent
github-actions / Unit Test Results Python 3.9
climada.hazard.test.test_base with error
tests_xml/tests.xml [took 0s]
Raw output
collection failure
../../../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:169: in exec_module
source_stat, co = _rewrite_test(fn, self.config)
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:351: in _rewrite_test
tree = ast.parse(source, filename=strfn)
../../../micromamba/envs/climada_env_3.9/lib/python3.9/ast.py:50: in parse
return compile(source, filename, mode, flags,
E File "/home/runner/work/climada_python/climada_python/climada/hazard/test/test_base.py", line 836
E centroids=Centroids(
E IndentationError: unexpected indent
github-actions / Unit Test Results Python 3.9
climada.hazard.test.test_trop_cyclone with error
tests_xml/tests.xml [took 0s]
Raw output
collection failure
../../../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:178: in exec_module
exec(co, module.__dict__)
climada/hazard/test/test_trop_cyclone.py:46: in <module>
CENTR_TEST_BRB = Centroids.from_mat(DATA_DIR.joinpath('centr_brb_test.mat'))
E AttributeError: type object 'Centroids' has no attribute 'from_mat'
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
climada/hazard/centroids/centr.py:684: in from_hdf5
metadata = store.get_storer('centroids').attrs.metadata
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/pandas/io/pytables.py:1594: in get_storer
s = self._create_storer(group)
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/pandas/io/pytables.py:1752: in _create_storer
raise TypeError(
E TypeError: cannot create a storer if the object is not existing nor a value are passed
During handling of the above exception, another exception occurred:
../../../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:178: in exec_module
exec(co, module.__dict__)
climada/util/test/test_lines_polys_handler.py:45: in <module>
HAZ = Client().get_hazard('storm_europe', name='test_haz_WS_nl', status='test_dataset')
climada/util/api_client.py:732: in get_hazard
return self.to_hazard(dataset, dump_dir)
climada/util/api_client.py:755: in to_hazard
hazard_list = [
climada/util/api_client.py:756: in <listcomp>
Hazard.from_hdf5(self._download_file(target_dir, dsf))
climada/hazard/base.py:1862: in from_hdf5
hazard_kwargs["centroids"] = Centroids.from_hdf5(file_name)
climada/hazard/centroids/centr.py:690: in from_hdf5
gdf = cls._legacy_from_hdf5(data.get('centroids'))
climada/hazard/centroids/centr.py:721: in _legacy_from_hdf5
return gpd.GeoDataFrame(
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/geopandas/geodataframe.py:139: in __init__
super().__init__(data, *args, **kwargs)
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/pandas/core/frame.py:736: in __init__
mgr = dict_to_mgr(data, index, columns, dtype=dtype, copy=copy, typ=manager)
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/pandas/core/internals/construction.py:503: in dict_to_mgr
return arrays_to_mgr(arrays, columns, index, dtype=dtype, typ=typ, consolidate=copy)
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/pandas/core/internals/construction.py:114: in arrays_to_mgr
index = _extract_index(arrays)
../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/pandas/core/internals/construction.py:677: in _extract_index
raise ValueError("All arrays must be of the same length")
E ValueError: All arrays must be of the same length
Loading