-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
🐛 bugSomething isn't workingSomething isn't working
Description
Task: sanity_checks.sanitycheck-home-batteries fails here, message:
...
File "/some/path/code/src/egon/data/datasets/sanity_checks.py", line 1368, in sanitycheck_home_batteries
cbat_pbat_ratio = get_cbat_pbat_ratio()
File "/some/path/code/src/egon/data/datasets/storages/home_batteries.py", line 83, in get_cbat_pbat_ratio
return int(db.select_dataframe(sql).iat[0, 0])
File "/some/path/venv/lib/python3.10/site-packages/pandas/core/indexing.py", line 2371, in __getitem__
return self.obj._get_value(*key, takeable=self._takeable)
File "/some/path/venv/lib/python3.10/site-packages/pandas/core/frame.py", line 3868, in _get_value
return series._values[index]
IndexError: index 0 is out of bounds for axis 0 with size 0
This is because the query
SELECT max_hours
FROM grid.egon_etrago_storage
WHERE carrier = 'home_battery'
in get_cbat_pbat_ratio() does not return any data for carrier "home_battery".
As far as I found out grid.egon_etrago_storage is filled in multiple tasks, the relevant might be storages_etrago.extendable-batteries in extendable_batteries_per_scenario? Also, I found this recent commit which changes the carrier name: aa75ad1
Do you have an idea what could be the reason for the missing data @ClaraBuettner @CarlosEpia ? (did the check fail at your end in your most recent run?)
Metadata
Metadata
Assignees
Labels
🐛 bugSomething isn't workingSomething isn't working