From e5db91bbd70462cc2a68c4b4b19df7676e243d6b Mon Sep 17 00:00:00 2001 From: ClaraBuettner Date: Thu, 14 Sep 2023 15:42:09 +0200 Subject: [PATCH] Apply isort --- etrago/cluster/snapshot.py | 3 ++- etrago/tools/calc_results.py | 4 ++-- etrago/tools/extendable.py | 10 ++++------ etrago/tools/plot.py | 2 +- 4 files changed, 9 insertions(+), 10 deletions(-) diff --git a/etrago/cluster/snapshot.py b/etrago/cluster/snapshot.py index fbbd1f68e..8afec2f1a 100644 --- a/etrago/cluster/snapshot.py +++ b/etrago/cluster/snapshot.py @@ -26,9 +26,10 @@ ( https://github.com/FZJ-IEK3-VSA/tsam ) developed by Leander Kotzur et al. """ -import pandas as pd import os +import pandas as pd + if "READTHEDOCS" not in os.environ: import pyomo.environ as po import tsam.timeseriesaggregation as tsam diff --git a/etrago/tools/calc_results.py b/etrago/tools/calc_results.py index f3e3338dd..aa6c6cb21 100755 --- a/etrago/tools/calc_results.py +++ b/etrago/tools/calc_results.py @@ -24,11 +24,11 @@ import os if "READTHEDOCS" not in os.environ: - import time import logging + import time - import pandas as pd import numpy as np + import pandas as pd logger = logging.getLogger(__name__) diff --git a/etrago/tools/extendable.py b/etrago/tools/extendable.py index 6bb566585..ba4be5173 100644 --- a/etrago/tools/extendable.py +++ b/etrago/tools/extendable.py @@ -21,16 +21,14 @@ """ Extendable.py defines function to set PyPSA components extendable. """ -from etrago.tools.utilities import convert_capital_costs, find_snapshots - -from etrago.cluster.snapshot import snapshot_clustering +from math import sqrt +import time import numpy as np import pandas as pd -import time -from math import sqrt - +from etrago.cluster.snapshot import snapshot_clustering +from etrago.tools.utilities import convert_capital_costs, find_snapshots __copyright__ = ( "Flensburg University of Applied Sciences, " diff --git a/etrago/tools/plot.py b/etrago/tools/plot.py index d3ae2068a..cc290c63e 100644 --- a/etrago/tools/plot.py +++ b/etrago/tools/plot.py @@ -45,9 +45,9 @@ if "READTHEDOCS" not in os.environ: from geoalchemy2.shape import to_shape - import geopandas as gpd from pyproj import Proj, transform from shapely.geometry import LineString, MultiPoint, Point, Polygon + import geopandas as gpd import tilemapbase __copyright__ = (