From 887aa532901027a02adccffa08367d331955399b Mon Sep 17 00:00:00 2001 From: Fabian Neumann Date: Sat, 9 Mar 2024 15:29:39 +0100 Subject: [PATCH] build_gas_input_locations: remove unnecessary [0] with new storage plugin --- scripts/build_gas_input_locations.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/build_gas_input_locations.py b/scripts/build_gas_input_locations.py index 6543d950..67dbc986 100644 --- a/scripts/build_gas_input_locations.py +++ b/scripts/build_gas_input_locations.py @@ -25,7 +25,7 @@ def read_scigrid_gas(fn): def build_gem_lng_data(fn): - df = pd.read_excel(fn[0], sheet_name="LNG terminals - data") + df = pd.read_excel(fn, sheet_name="LNG terminals - data") df = df.set_index("ComboID") remove_country = ["Cyprus", "Turkey"] # noqa: F841 @@ -46,7 +46,7 @@ def build_gem_lng_data(fn): def build_gem_prod_data(fn): - df = pd.read_excel(fn[0], sheet_name="Gas extraction - main") + df = pd.read_excel(fn, sheet_name="Gas extraction - main") df = df.set_index("GEM Unit ID") remove_country = ["Cyprus", "Türkiye"] # noqa: F841 @@ -60,7 +60,7 @@ def build_gem_prod_data(fn): & ~Longitude.isna()" ).copy() - p = pd.read_excel(fn[0], sheet_name="Gas extraction - production") + p = pd.read_excel(fn, sheet_name="Gas extraction - production") p = p.set_index("GEM Unit ID") p = p[p["Fuel description"] == "gas"]