Skip to content

Commit

Permalink
Bug fix do not import geopandas in case of readthedocs
Browse files Browse the repository at this point in the history
  • Loading branch information
birgits committed Mar 8, 2023
1 parent cf1e438 commit 7e73a8b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion edisgo/io/heat_pump_import.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import logging
import os
import random

import geopandas as gpd
import numpy as np
import pandas as pd
import saio
Expand All @@ -14,6 +14,9 @@
determine_grid_integration_voltage_level,
)

if "READTHEDOCS" not in os.environ:
import geopandas as gpd

logger = logging.getLogger(__name__)


Expand Down

0 comments on commit 7e73a8b

Please sign in to comment.