Open ddceruti opened 1 month ago
Hello @ddceruti! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
src/demandlib/particular_profiles.py
: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)
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.