Skip to content

Commit 06864b7

Browse files
author
schmide
committed
sphinx configuration adapted
(cherry picked from commit ed7c57f)
1 parent b356196 commit 06864b7

File tree

5 files changed

+60
-58
lines changed

5 files changed

+60
-58
lines changed

climada/engine/impact.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def plot_hexbin_eai_exposure(self, mask=None, ignore_zero=True,
272272
axis (matplotlib.axes._subplots.AxesSubplot, optional): axis to use
273273
kwargs (optional): arguments for hexbin matplotlib function
274274
275-
Returns:
275+
Returns:
276276
cartopy.mpl.geoaxes.GeoAxesSubplot
277277
"""
278278
eai_exp = self._build_exp()
@@ -298,7 +298,7 @@ def plot_scatter_eai_exposure(self, mask=None, ignore_zero=True,
298298
axis (matplotlib.axes._subplots.AxesSubplot, optional): axis to use
299299
kwargs (optional): arguments for hexbin matplotlib function
300300
301-
Returns:
301+
Returns:
302302
cartopy.mpl.geoaxes.GeoAxesSubplot
303303
"""
304304
eai_exp = self._build_exp()
@@ -324,7 +324,7 @@ def plot_raster_eai_exposure(self, res=None, raster_res=None, save_tiff=None,
324324
axis (matplotlib.axes._subplots.AxesSubplot, optional): axis to use
325325
kwargs (optional): arguments for imshow matplotlib function
326326
327-
Returns:
327+
Returns:
328328
cartopy.mpl.geoaxes.GeoAxesSubplot
329329
"""
330330
eai_exp = self._build_exp()
@@ -353,7 +353,7 @@ def plot_basemap_eai_exposure(self, mask=None, ignore_zero=False, pop_name=True,
353353
kwargs (optional): arguments for scatter matplotlib function, e.g.
354354
cmap='Greys'. Default: 'Wistia'
355355
356-
Returns:
356+
Returns:
357357
cartopy.mpl.geoaxes.GeoAxesSubplot
358358
"""
359359
eai_exp = self._build_exp()
@@ -382,7 +382,7 @@ def plot_hexbin_impact_exposure(self, event_id=1, mask=None, ignore_zero=True,
382382
kwargs (optional): arguments for hexbin matplotlib function
383383
axis (matplotlib.axes._subplots.AxesSubplot, optional): axis to use
384384
385-
Returns:
385+
Returns:
386386
matplotlib.figure.Figure, cartopy.mpl.geoaxes.GeoAxesSubplot
387387
"""
388388
try:
@@ -421,7 +421,7 @@ def plot_basemap_impact_exposure(self, event_id=1, mask=None, ignore_zero=True,
421421
kwargs (optional): arguments for scatter matplotlib function, e.g.
422422
cmap='Greys'. Default: 'Wistia'
423423
424-
Returns:
424+
Returns:
425425
cartopy.mpl.geoaxes.GeoAxesSubplot
426426
"""
427427
try:

climada/entity/exposures/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ def plot_raster(self, res=None, raster_res=None, save_tiff=None,
366366
axis (matplotlib.axes._subplots.AxesSubplot, optional): axis to use
367367
kwargs (optional): arguments for imshow matplotlib function
368368
369-
Returns:
369+
Returns:
370370
matplotlib.figure.Figure, cartopy.mpl.geoaxes.GeoAxesSubplot
371371
"""
372372
if self.meta and self.meta['height']*self.meta['width'] == len(self):

doc/conf.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@
2929

3030
# Add any Sphinx extension module names here, as strings. They can be extensions
3131
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
32-
extensions = ['matplotlib.sphinxext.only_directives',
33-
'matplotlib.sphinxext.plot_directive',
32+
extensions = ['matplotlib.sphinxext.plot_directive',
3433
'IPython.sphinxext.ipython_directive',
3534
'IPython.sphinxext.ipython_console_highlighting',
3635
'sphinx.ext.mathjax',

doc/guide/developer.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Contributions are very welcome! Please follow these steps:
2828

2929
5. Make unit and integration **tests** on your code, preferably during development:
3030

31-
* Unit tests are located in the ``test`` folder located in same folder as the corresponding module. Unit tests should test all methods and functions using fake data if necessary. The whole test suit should run in less than 20 sec. They are all executed after each push in `Jenkins <http://ied-wcr-jenkins.ethz.ch/job/climada_ci/>`_.
31+
* Unit tests are located in the ``test`` folder located in same folder as the corresponding module. Unit tests should test all methods and functions using fake data if necessary. The whole test suit should run in less than 20 sec. They are all executed after each push in `Jenkins <http://ied-wcr-jenkins.ethz.ch/job/climada_branches/>`_.
3232

3333
* Integration tests are located in ``climada/test/``. They test end-to-end methods and functions. Their execution time can be of minutes. They are executed once a day in `Jenkins <http://ied-wcr-jenkins.ethz.ch/job/climada_ci_night/>`_.
3434

requirements/env_docs.yml

Lines changed: 51 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -3,56 +3,59 @@ channels:
33
- defaults
44
dependencies:
55
- blas=1.0
6-
- cartopy=0.16.0
7-
- cython=0.26
8-
- dill=0.2.7.1
9-
- gdal
10-
- geos=3.6.2
11-
- geopandas=0.4.0
12-
- h5py=2.7.1
6+
- cartopy=0.17.0
7+
- curl=7.65.3
8+
- cython=0.29.7
9+
- dask=1.2.2
10+
- dill=0.2.9
11+
- fiona=1.8.4
12+
- gdal=2.3.3
13+
- geos=3.7.1
14+
- geopandas=0.4.1
15+
- h5py=2.9.0
16+
- kealib=1.4.7
17+
- libtiff=4.0
18+
- matplotlib=3.1.0
19+
- mkl=2019.3
20+
- mkl_fft=1.0.12
21+
- mkl_random=1.0.2
22+
- netcdf4=1.4.2
23+
- numba=0.43.1
24+
- numpy=1.16.3
25+
- pandas=0.24.2
26+
- pandas-datareader=0.7.0
27+
- pip=19.1
28+
- proj4=5.2.0
29+
- pysocks=1.6.8
30+
- pyshp=2.1.0
31+
- pytables=3.5.1
32+
- python=3.7.3
33+
- rasterio=1.0.21
34+
- requests=2.21.0
35+
- scikit-learn=0.20.3
36+
- scipy=1.2.1
37+
- setuptools=41.0.1
38+
- shapely=1.6.4
39+
- tabulate=0.8.3
40+
- tqdm=4.31.1
41+
- xarray=0.12.1
42+
- xlrd=1.2.0
43+
- xlsxwriter=1.1.7
1344
- ipykernel=5.1.0
1445
- ipython=7.3.0
15-
- ipython_genutils=0.2.0
16-
- jsonschema=2.6.0
1746
- jupyter_client=5.2.4
18-
- jupyter_core=4.4.0
19-
- matplotlib=2.2.2
20-
- mkl
21-
- mkl_fft
22-
- mkl_random
23-
- netcdf4=1.3.1
24-
- numba=0.37.0
25-
- numpy=1.14.2
26-
- nbconvert=5.4.1
27-
- pandas=0.23.0
28-
- pandas-datareader=0.6.0
29-
- pandoc=1.19.2.1
30-
- pip=10.0.1
31-
- proj4
32-
- pysocks=1.6.8
33-
- pyshp=1.2.12
34-
- pytables=3.4.4
35-
- python=3.6.5
36-
- rasterio=0.36.0
37-
- requests=2.19.1
38-
- scikit-learn=0.19.1
39-
- scipy=1.1.0
40-
- setuptools=39.1.0
41-
- shapely=1.6.4
42-
- sphinx=1.8.5
43-
- tabulate=0.8.2
44-
- tqdm=4.23.4
45-
- xarray=0.10.2
46-
- xlrd=1.1.0
47-
- xlsxwriter=1.1.2
4847
- pip:
49-
- contextily==0.99.0
50-
- iso3166==0.9
51-
- multiprocess==0.70.5
52-
- nbsphinx==0.4.2
48+
- contextily==1.0rc2
49+
- elevation==1.0.6
50+
- haversine==2.1.1
51+
- iso3166==1.0
52+
- multiprocess==0.70.7
53+
- nbconvert==5.5.0
54+
- nbformat==4.4
5355
- overpy==0.4
54-
- pathos==0.2.1
55-
- pint==0.8.1
56-
- pox==0.2.5
57-
- ppft==1.6.4.7.1
58-
56+
- pathos==0.2.3
57+
- pint==0.9
58+
- ppft==1.6.4.9
59+
- xmlrunner==1.7.7
60+
- nbsphinx==0.4.2
61+
- sphinx

0 commit comments

Comments
 (0)