From 4d2d17aa68125b4dbfd1f58ce704589a6272d653 Mon Sep 17 00:00:00 2001 From: ClaraBuettner Date: Tue, 3 Sep 2024 17:37:10 +0200 Subject: [PATCH] Move imports to avoid problems when building rtd --- etrago/analyze/plot.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/etrago/analyze/plot.py b/etrago/analyze/plot.py index 07dd75d6..9f3c7fd7 100644 --- a/etrago/analyze/plot.py +++ b/etrago/analyze/plot.py @@ -39,16 +39,17 @@ import cartopy.crs as ccrs except ImportError: cartopy_present = False - + +from geoalchemy2.shape import to_shape # noqa: F401 +from pyproj import Proj, transform +from shapely.geometry import LineString, Point +import geopandas as gpd +import tilemapbase logger = logging.getLogger(__name__) if "READTHEDOCS" not in os.environ: - from geoalchemy2.shape import to_shape # noqa: F401 - from pyproj import Proj, transform - from shapely.geometry import LineString, Point - import geopandas as gpd - import tilemapbase + from etrago.execute import import_gen_from_links