Skip to content

Commit 7ddccd9

Browse files
author
schmide
committed
Merge branch 'develop' into main
# Conflicts: # climada/hazard/centroids/centr.py # climada/hazard/tc_tracks.py # climada/util/coordinates.py # climada/util/test/test_coordinates.py # doc/climada/climada.entity.exposures.rst # doc/climada/climada.entity.impact_funcs.rst # doc/climada/climada.hazard.rst # doc/guide/developer.rst # requirements/env_docs.yml resolved using develop
2 parents a860e63 + 281812c commit 7ddccd9

File tree

202 files changed

+23636
-9051
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

202 files changed

+23636
-9051
lines changed

.gitignore

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Hidden Files
2+
.*
3+
14
# Byte-compiled / optimized / DLL files
25
__pycache__/
36
*.py[cod]
@@ -47,6 +50,18 @@ coverage.xml
4750
*.cover
4851
.hypothesis/
4952

53+
# Temporary data generated by unit tests
54+
climada/engine/test/data/test.csv
55+
climada/engine/test/data/test.xlsx
56+
climada/engine/test/data/test_imp_mat.npz
57+
climada/entity/impact_funcs/test/test_write.xlsx
58+
climada/hazard/test/data/test_haz.h5
59+
climada/hazard/test/data/tc_tracks_nc/*
60+
climada/test/data/1988234N13299.nc
61+
climada/test/data/exposure_high_47_8.h5
62+
climada/test/data/test_write_hazard.tif
63+
climada/util/test/data/save_test.pkl
64+
5065
# Translations
5166
*.mo
5267
*.pot
@@ -107,7 +122,55 @@ venv.bak/
107122
# mac finder files
108123
.DS_Store
109124

125+
# directory with input data for hazard emulator tutorial
126+
data/emulator
127+
110128
# climada system data files
111129
# they get downloaded separately from the repo
112130
data/system/global_coast*
113131
data/system/global_country*
132+
data/system/tmp_elevation.tif
133+
134+
# climada system data files: Nightlight and population data
135+
data/system/BlackMarble*tif
136+
data/system/*stable_lights*.*
137+
data/system/gpw_v4_population_count_rev11_2015_30_sec.tif
138+
139+
# climada system data files: IBTrACS data
140+
data/system/IBTrACS.ALL.v04r00.nc
141+
data/system/data_master_sl_short/
142+
143+
# climada system data files: SPEI data
144+
data/system/spei06.nc
145+
146+
# climada system data files: World Bank data
147+
data/system/OGHIST.xls
148+
data/system/Wealth-Accounts_CSV/
149+
150+
# climada system data files: Credit Suisse Research institute data:
151+
data/system/GDP2Asset_factors_CRI_2016
152+
153+
# climada system data files: SPAM data
154+
data/system/cell5m_allockey_xy.csv
155+
data/system/LicenseV*.pdf
156+
data/system/readme_global_v3r2.txt
157+
data/system/spam*csv
158+
159+
# climada system data files: GPW data
160+
data/system/gpw-v*
161+
data/system/gpw_v*.tif
162+
163+
# climada system data files: NASA distance to coast
164+
data/system/GMT_intermediate_coast*
165+
166+
# climada system data files: folders for hazard and exposure data
167+
data/system/hazard/
168+
data/system/litpop/
169+
data/system/litpop_2014/
170+
171+
# climada data: ISIMIP crop data folder:
172+
data/ISIMIP_crop/
173+
174+
# climada data results folder:
175+
data/results/
176+

.pylintrc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# A comma-separated list of package or module names from where C extensions may
44
# be loaded. Extensions are loading into the active Python interpreter and may
55
# run arbitrary code
6-
extension-pkg-whitelist=numpy,pathos
6+
extension-pkg-whitelist=numpy,pathos,scipy
77

88
# Add files or directories to the blacklist. They should be base names, not
99
# paths.
@@ -130,7 +130,7 @@ contextmanager-decorators=contextlib.contextmanager
130130
# List of members which are set dynamically and missed by pylint inference
131131
# system, and so shouldn't trigger E1101 when accessed. Python regular
132132
# expressions are accepted.
133-
generated-members=numpy.*,pathos.*
133+
generated-members=numpy.*,pathos.*,cartopy.*,scipy.*
134134

135135
# Tells whether missing members accessed in mixin class should be ignored. A
136136
# mixin class is detected if its name ends with "mixin" (case insensitive).
@@ -153,7 +153,7 @@ ignored-classes=optparse.Values,thread._local,_thread._local
153153
# (useful for modules/projects where namespaces are manipulated during runtime
154154
# and thus existing member attributes cannot be deduced by static analysis. It
155155
# supports qualified module names, as well as Unix pattern matching.
156-
ignored-modules=numpy,pathos
156+
ignored-modules=numpy,cartopy,scipy,pathos,xarray.ufuncs,netCDF4,matplotlib.cm
157157

158158
# Show a hint with possible names when a member name was not found. The aspect
159159
# of finding the hint is based on edit distance.

AUTHORS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@ Rachel Bungerer
1313
Inga Sauer
1414
Samuel Lüthi
1515
Mannie Kam
16+
Simona Meiler
17+
Alessio Ciullo
18+
Thomas Vogt

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ install_test : ## Test installation was successful
2424
data_test : ## Test data APIs
2525
python test_data_api.py
2626

27+
.PHONY : notebook_test
28+
notebook_test : ## Test notebooks in doc/tutorial
29+
python test_notebooks.py
30+
2731
.PHONY : integ_test
2832
integ_test : ## Integration tests execution with xml reports
2933
python -m coverage run --parallel-mode --concurrency=multiprocessing tests_runner.py integ

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Build Status](http://ied-wcr-jenkins.ethz.ch/buildStatus/icon?job=climada_ci)](http://ied-wcr-jenkins.ethz.ch/job/climada_ci/)
1+
[![Build Status](http://ied-wcr-jenkins.ethz.ch/buildStatus/icon?job=climada_branches/develop)](http://ied-wcr-jenkins.ethz.ch/job/climada_branches/)
22
[![Documentation build status](https://img.shields.io/readthedocs/climada-python.svg?style=flat-square)](https://readthedocs.org/projects/climada-python/builds/)
33
![Jenkins Coverage](https://img.shields.io/jenkins/coverage/cobertura/http/ied-wcr-jenkins.ethz.ch/climada_ci_night.svg)
44

@@ -57,4 +57,4 @@ CLIMADA is free software: you can redistribute it and/or modify it under the ter
5757

5858
CLIMADA is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details:
5959

60-
https://github.com/CLIMADA-project/climada_python/blob/master/LICENSE
60+
<https://www.gnu.org/licenses/lgpl.html>

climada/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
climada init
2020
"""
2121

22-
from .util.config import CONFIG, setup_conf_user, setup_logging, setup_environ
22+
from .util.config import CONFIG, setup_conf_user, setup_logging
2323
setup_conf_user()
2424
setup_logging(CONFIG['global']['log_level'])
25-
setup_environ()

climada/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.4.0'
1+
__version__ = '1.4.2-dev'

climada/conf/defaults.conf

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
{
2-
"config":
3-
{
4-
"env_name": "climada_env"
5-
},
6-
72
"local_data":
83
{
94
"save_dir": "./results/"

0 commit comments

Comments
 (0)