Introduce variable for storage losses #734
GitHub Actions / Black
failed
Jul 9, 2024 in 0s
1 error
Black found 1 error
Annotations
Check failure on line 22 in /home/runner/work/oemof-solph/oemof-solph/tests/test_options.py
github-actions / Black
/home/runner/work/oemof-solph/oemof-solph/tests/test_options.py#L14-L22
def test_check_age_and_lifetime():
"""Check error being thrown if age > lifetime"""
msg = "A unit's age must be smaller than its expected lifetime."
with pytest.raises(AttributeError, match=msg):
- solph.Flow(
- nominal_value=solph.Investment(age=41, lifetime=40)
- )
+ solph.Flow(nominal_value=solph.Investment(age=41, lifetime=40))
Loading