oemof / demandlib

Creating heat and power demand profiles from annual values.
https://oemof.org
MIT License
54 stars 38 forks source link

Fixed electricity example, added holiday functionality to industrial profile generation. #60

Open ddceruti opened 1 month ago

ddceruti commented 1 month ago

Correcten an error in the electricity_demand_example where the "i0" to "i2" profiles did not produce any time series. Added a funcitonality to particular_profiles.py to allow defining holiday weights, which were being treated as weekend days until now. If the holiday key is not specified, the function treats the holidays as weekend days as before. Simplified the function by adding a loop.

pep8speaks commented 1 month ago

Hello @ddceruti! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 81:80: E501 line too long (84 > 79 characters) Line 87:80: E501 line too long (81 > 79 characters) Line 89:80: E501 line too long (81 > 79 characters) Line 91:80: E501 line too long (81 > 79 characters) Line 93:80: E501 line too long (81 > 79 characters) Line 105:80: E501 line too long (81 > 79 characters) Line 108:80: E501 line too long (84 > 79 characters)

Comment last updated at 2024-07-16 16:52:31 UTC