Skip to content

Negative load shedding incompatible with spatial disaggregation #848

@KathiEsterl

Description

@KathiEsterl

During spatial disaggregation within an eGon2035 scenario involving negative load shedding at ‘Li_ion’-buses, the following error occurs:

Traceback (most recent call last):
  File "/home/esterl/eTraGo-dev/venv/lib/python3.10/site-packages/pandas/core/indexes/base.py", line 3791, in get_loc
    return self._engine.get_loc(casted_key)
  File "index.pyx", line 152, in pandas._libs.index.IndexEngine.get_loc
  File "index.pyx", line 181, in pandas._libs.index.IndexEngine.get_loc
  File "pandas/_libs/hashtable_class_helper.pxi", line 7080, in pandas._libs.hashtable.PyObjectHashTable.get_item
  File "pandas/_libs/hashtable_class_helper.pxi", line 7088, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: '77079 negative load shedding'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/esterl/eTraGo-dev/git/eTraGo/etrago/appl.py", line 666, in <module>
    etrago = run_etrago(args, json_path=None)
  File "/home/esterl/eTraGo-dev/git/eTraGo/etrago/appl.py", line 655, in run_etrago
    etrago.spatial_disaggregation()
  File "/home/esterl/eTraGo-dev/git/eTraGo/etrago/disaggregate/spatial.py", line 896, in run_disaggregation
    disaggregation.execute(self.scenario, solver=self.args["solver"])
  File "/home/esterl/eTraGo-dev/git/eTraGo/etrago/disaggregate/spatial.py", line 300, in execute
    self.solve(scenario, solver)
  File "/home/esterl/eTraGo-dev/git/eTraGo/etrago/disaggregate/spatial.py", line 337, in solve
    self.solve_partial_network(
  File "/home/esterl/eTraGo-dev/git/eTraGo/etrago/disaggregate/spatial.py", line 776, in solve_partial_network
    clt = cl_t[s].loc[:, clb.index[0]]
  File "/home/esterl/eTraGo-dev/venv/lib/python3.10/site-packages/pandas/core/indexing.py", line 1147, in __getitem__
    return self._getitem_tuple(key)
  File "/home/esterl/eTraGo-dev/venv/lib/python3.10/site-packages/pandas/core/indexing.py", line 1330, in _getitem_tuple
    return self._getitem_lowerdim(tup)
  File "/home/esterl/eTraGo-dev/venv/lib/python3.10/site-packages/pandas/core/indexing.py", line 1039, in _getitem_lowerdim
    section = self._getitem_axis(key, axis=i)
  File "/home/esterl/eTraGo-dev/venv/lib/python3.10/site-packages/pandas/core/indexing.py", line 1393, in _getitem_axis
    return self._get_label(key, axis=axis)
  File "/home/esterl/eTraGo-dev/venv/lib/python3.10/site-packages/pandas/core/indexing.py", line 1343, in _get_label
    return self.obj.xs(label, axis=axis)
  File "/home/esterl/eTraGo-dev/venv/lib/python3.10/site-packages/pandas/core/generic.py", line 4222, in xs
    return self[key]
  File "/home/esterl/eTraGo-dev/venv/lib/python3.10/site-packages/pandas/core/frame.py", line 3893, in __getitem__
    indexer = self.columns.get_loc(key)
  File "/home/esterl/eTraGo-dev/venv/lib/python3.10/site-packages/pandas/core/indexes/base.py", line 3798, in get_loc
    raise KeyError(key) from err
KeyError: '77079 negative load shedding'

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions