Skip to content

Commit

Permalink
Move imports to avoid problems when building rtd
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaraBuettner committed Sep 3, 2024
1 parent df8891b commit 4d2d17a
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions etrago/analyze/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4d2d17a

Please sign in to comment.