Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect parse of files with 23 or 25 days #4

Open
BigTava opened this issue Sep 7, 2023 · 0 comments
Open

Incorrect parse of files with 23 or 25 days #4

BigTava opened this issue Sep 7, 2023 · 0 comments

Comments

@BigTava
Copy link
Contributor

BigTava commented Sep 7, 2023

Hi,
For a date with 23 days, it seems to duplicate the final hour.
Example:
File: https://www.omie.es/sites/default/files/dados/AGNO_2023/MES_03/TXT/INT_PBC_EV_H_1_26_03_2023_26_03_2023.TXT
Result:
DATE CONCEPT H1 H2 H3 ... H20 H21 H22 H23 H24
1 2023-03-26 PRICE_PT 45.1 35.0 29.59 ... 74.83 104.63 99.42 82.25 82.25

For a date with 25 days, it ignore the 25th hour.
File: https://www.omie.es/sites/default/files/dados/AGNO_2022/MES_10/TXT/INT_PBC_EV_H_1_30_10_2022_30_10_2022.TXT
Result:
DATE CONCEPT H1 H2 ... H21 H22 H23 H24
1 2022-10-30 PRICE_PT 139.17 105.1 ... 200.0 225.35 209.27 157.31

Any way to fix this?

I have fixed the issue, and included in a pull request:
#5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant