build_gas_input_locations: remove unnecessary [0] with new storage plugin

This commit is contained in:
Fabian Neumann 2024-03-09 15:29:39 +01:00
parent ed71978b92
commit 887aa53290

View File

@ -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"]