acruzgarcia / OMIEData

Python package to import data from OMIE (Iberian Peninsula's Electricity Market Operator): https://www.omie.es/
https://pypi.org/project/OMIEData/
MIT License
24 stars 7 forks source link

fix: day with 25 hours #5

Closed BigTava closed 1 year ago

BigTava commented 1 year ago

Description:

Motivation:

The motivation behind these changes is to handle the daylight saving time change, in a more accurate manner. The existing logic does not handle days with 25 hours. In days with 23 hours, the value for 23rd hour == 24th hour, which could be misleading.

Testing:

All unit tests in marginal_pricer_reader_test.py have passed successfully. The changes have verified to work correctly with the test files files.

Backwards Compatibility:

These changes are backward compatible with existing data files and should not break any existing functionality. However, it should be taken into consideration that the results retrieved by the client include 25 values, from now on.

Thank you for considering these improvements. I look forward to your feedback and am happy to make any necessary adjustments.