Skip to content

Commit 094ca78

Browse files
author
Severin
committed
updated to v1.2.6
1 parent 8e30a20 commit 094ca78

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
lines changed

Examples/00_basic_workflow.ipynb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@
484484
{
485485
"data": {
486486
"text/plain": [
487-
"<matplotlib.axes._axes.Axes at 0x250a3737940>"
487+
"<matplotlib.axes._axes.Axes at 0x19ae9c85190>"
488488
]
489489
},
490490
"execution_count": 3,
@@ -524,12 +524,14 @@
524524
"---\n",
525525
"# Draw exclusions with a basemap\n",
526526
"\n",
527-
"Be careful to not use a too-high zoom level!"
527+
"Be careful to not use a too-high zoom level!\n",
528+
"\n",
529+
"Also don't forget about using the right attribution"
528530
]
529531
},
530532
{
531533
"cell_type": "code",
532-
"execution_count": 4,
534+
"execution_count": 5,
533535
"metadata": {},
534536
"outputs": [
535537
{
@@ -544,7 +546,7 @@
544546
}
545547
],
546548
"source": [
547-
"ax = ec.drawWithSmopyBasemap(zoom=11, figsize=(40,20), attribution=\"© OpenStreetMap contributors\")"
549+
"ax = ec.drawWithSmopyBasemap(zoom=11, figsize=(40,20))"
548550
]
549551
},
550552
{

glaes/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""The Geospatial Land Availability for Energy Systems (GLAES) model is intended for land eligbility analysis in any context"""
22

3-
__version__ = "1.1.5"
3+
__version__ = "1.1.6"
44

55
from .core import util
66
from .core.priors import Priors

glaes/core/ExclusionCalculator.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ def draw(s, ax=None, goodColor="#9bbb59", excludedColor="#a6161a", legend=True,
453453
# Done!!
454454
return axh1.ax
455455

456-
def drawWithSmopyBasemap(s, zoom=4, excludedColor=(166 / 255, 22 / 255, 26 / 255, 128 / 255), ax=None, figsize=None, smopy_kwargs={}, attribution="© OpenStreetMap contributors", attribution_size=12, **kwargs):
456+
def drawWithSmopyBasemap(s, zoom=4, excludedColor=(166 / 255, 22 / 255, 26 / 255, 128 / 255), ax=None, figsize=None, smopy_kwargs=dict(attribution="© OpenStreetMap contributors", attribution_size=12), **kwargs):
457457
"""
458458
This wrapper around the original ExclusionCalculator.draw function adds a basemap bethind the drawn eligibility map
459459
@@ -522,9 +522,6 @@ def drawWithSmopyBasemap(s, zoom=4, excludedColor=(166 / 255, 22 / 255, 26 / 255
522522
ax, srs, bounds = s.region.extent.drawSmopyMap(zoom, ax=ax, **smopy_kwargs)
523523
s.draw(ax=ax, srs=srs, goodColor=[0, 0, 0, 0], excludedColor=(166 / 255, 22 / 255, 26 / 255, 128 / 255), **kwargs)
524524

525-
if attribution is not None:
526-
ax.text(1, 0, attribution, transform=ax.transAxes, ha="right", va="bottom", fontsize=attribution_size)
527-
528525
return ax
529526

530527
@property

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
setup(
44
name='glaes',
5-
version='1.1.5',
5+
version='1.1.6',
66
author='Severin Ryberg',
77
url='https://github.com/FZJ-IEK3-VSA/glaes',
88
packages=find_packages(),
99
include_package_data=True,
1010
install_requires=[
11-
"geokit>=1.2.5",
11+
"geokit>=1.2.6",
1212
"gdal>2.0.0,<3.0.0",
1313
"numpy",
1414
"descartes",

0 commit comments

Comments
 (0)