fix para leitura de geração térmica por submercado/patamar no forward - #121
Merged
rjmalves merged 2 commits intoJul 1, 2026
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #121 +/- ##
=======================================
Coverage 91.06% 91.07%
=======================================
Files 526 526
Lines 18938 18948 +10
=======================================
+ Hits 17246 17256 +10
Misses 1692 1692
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
beralbdom
commented
Jun 22, 2026
| indice = estagio * numero_forwards + serie | ||
| offset = tamanho_registro * indice | ||
| # offset = tamanho_registro * indice | ||
| offset = int(tamanho_registro) * int(indice) |
Contributor
Author
There was a problem hiding this comment.
acabei deixando passar isso, é um fix potencial pra overflow lendo todos os estagios de uma vez, mas não tem a ver com a leitura da gter
| indice = estagio * numero_forwards + serie | ||
| # offset = tamanho_registro * indice | ||
| offset = int(tamanho_registro) * int(indice) | ||
| offset = tamanho_registro * indice |
Owner
|
perfeito! a implementação anterior contava com uma certa ordenação nos dados de entrada (que convenientemente existia nos casos testados), mas não era garantida |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
o nw grava a geração térmica em blocos por submercado, com o patamar variando dentro de cada bloco (para as classes daquele submercado).
__converte_array_ute_patamarmontava os rótulos assumindo o patamar variando sobre todas as classes de uma vez.adicionado o teste
test_geracao_termica_agrupada_por_submercadoemtests/newave/test_forward.py