From 918bf575e486b7112ec4be44a336d051432c27cf Mon Sep 17 00:00:00 2001 From: FL550 <36160004+FL550@users.noreply.github.com> Date: Mon, 7 Oct 2024 10:24:31 +0000 Subject: [PATCH] Fix wrong latitude correction --- setup.py | 2 +- simple_dwd_weatherforecast/dwdmap.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 49c4e5a..5eda8a7 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name="simple_dwd_weatherforecast", - version="2.1.8", + version="2.1.9", author="Max Fermor", description="A simple tool to retrieve a weather forecast from DWD OpenData", long_description=long_description, diff --git a/simple_dwd_weatherforecast/dwdmap.py b/simple_dwd_weatherforecast/dwdmap.py index d120554..7e5a6a2 100644 --- a/simple_dwd_weatherforecast/dwdmap.py +++ b/simple_dwd_weatherforecast/dwdmap.py @@ -285,7 +285,7 @@ def draw_marker( ) * image.width, ( - (image_bounderies.minY - marker.latitude) + (image_bounderies.maxY - marker.latitude) / (image_bounderies.maxY - image_bounderies.minY) ) * image.height,