-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #89 from rjmalves/suporte-novos-nwlistop
Suporte novos nwlistop
- Loading branch information
Showing
35 changed files
with
1,162 additions
and
18 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ pytest | |
pytest-cov | ||
numpy | ||
pandas | ||
pylama | ||
ruff | ||
mypy | ||
sphinx | ||
sphinx-gallery | ||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.. _custo_futuro: | ||
|
||
========================================== | ||
Custos Futuros (custo_futuro.out) | ||
========================================== | ||
|
||
.. currentmodule:: inewave.nwlistop.custo_futuro | ||
|
||
Os valores de custos futuros, localizado no arquivo denominado | ||
custo_futuro.out, são armazenados na classe: | ||
|
||
.. autoclass:: CustoFuturo | ||
:members: |
13 changes: 13 additions & 0 deletions
13
docs/source/referencia/nwlistop/arquivos/cviol_eletrica.rst
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.. _cviol_eletrica: | ||
|
||
=============================================================================== | ||
Custos de Violação de Restrições Elétricas (cviol_eletrica.out) | ||
=============================================================================== | ||
|
||
.. currentmodule:: inewave.nwlistop.cviol_eletrica | ||
|
||
Os valores de custos de violação das restrições elétricas por restrição, localizados no arquivo geralmente denominado | ||
cviol_eletricaXXX.out, são armazenados na classe: | ||
|
||
.. autoclass:: CviolEletrica | ||
:members: |
13 changes: 13 additions & 0 deletions
13
docs/source/referencia/nwlistop/arquivos/viol_eletrica.rst
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.. _viol_eletrica: | ||
|
||
=============================================================================== | ||
Violação de Restrições Elétricas (viol_eletrica.out) | ||
=============================================================================== | ||
|
||
.. currentmodule:: inewave.nwlistop.viol_eletrica | ||
|
||
Os valores de violação das restrições elétricas por restrição, localizados no arquivo geralmente denominado | ||
viol_eletricaXXX.out, são armazenados na classe: | ||
|
||
.. autoclass:: ViolEletrica | ||
:members: |
This file contains 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
13 changes: 13 additions & 0 deletions
13
docs/source/referencia/nwlistop/arquivos/viol_neg_vretiruh.rst
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.. _viol_neg_vretiruh: | ||
|
||
====================================================================== | ||
Desvio Negativo da Retirada de Água por Usina (viol_neg_vretiruh.out) | ||
====================================================================== | ||
|
||
.. currentmodule:: inewave.nwlistop.viol_neg_vretiruh | ||
|
||
Os valores de desvio negativo da retirada de água por usina, localizados nos arquivos geralmente denominados | ||
viol_neg_vretiruhXXX.out, onde X varia conforme a usina, são armazenados na classe: | ||
|
||
.. autoclass:: ViolNegVretiruh | ||
:members: |
13 changes: 13 additions & 0 deletions
13
docs/source/referencia/nwlistop/arquivos/viol_pos_vretiruh.rst
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.. _viol_pos_vretiruh: | ||
|
||
====================================================================== | ||
Desvio Positivo da Retirada de Água por Usina (viol_pos_vretiruh.out) | ||
====================================================================== | ||
|
||
.. currentmodule:: inewave.nwlistop.viol_pos_vretiruh | ||
|
||
Os valores de desvio positivo da retirada de água por usina, localizados nos arquivos geralmente denominados | ||
viol_pos_vretiruhXXX.out, onde X varia conforme a usina, são armazenados na classe: | ||
|
||
.. autoclass:: ViolPosVretiruh | ||
:members: |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from inewave.nwlistop.modelos.custo_futuro import CustoFuturoAnos | ||
|
||
from inewave.nwlistop.modelos.arquivos.arquivosin import ( | ||
ArquivoSIN, | ||
) | ||
|
||
|
||
class CustoFuturo(ArquivoSIN): | ||
""" | ||
Armazena os dados das saídas referentes ao custo futuro | ||
de cada estágio em cada série. | ||
Esta classe lida com as informações de saída fornecidas pelo | ||
NWLISTOP e reproduzidas nos `custo_futuro.out`. | ||
""" | ||
|
||
BLOCKS = [ | ||
CustoFuturoAnos, | ||
] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
from inewave.nwlistop.modelos.blocos.restricao import Restricao | ||
from inewave.nwlistop.modelos.arquivos.arquivorestricaopatamar import ( | ||
ArquivoRestricaoPatamar, | ||
) | ||
from inewave.nwlistop.modelos.cviol_eletrica import CviolEletricaAnos | ||
|
||
|
||
class CviolEletrica(ArquivoRestricaoPatamar): | ||
""" | ||
Armazena os dados das saídas referentes ao custo de violação | ||
de Restrição Elétrica Especial por restrição. | ||
Esta classe lida com as informações de saída fornecidas pelo | ||
NWLISTOP e reproduzidas nos `cviol_eletricaXXX.out`. | ||
""" | ||
|
||
BLOCKS = [ | ||
Restricao, | ||
CviolEletricaAnos, | ||
] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
from inewave.config import MESES_DF | ||
|
||
from cfinterface.components.line import Line | ||
from cfinterface.components.integerfield import IntegerField | ||
from cfinterface.components.floatfield import FloatField | ||
from inewave.nwlistop.modelos.blocos.valoresserie import ValoresSerie | ||
|
||
|
||
class CustoFuturoAnos(ValoresSerie): | ||
""" | ||
Bloco com as informações das tabelas de custos futuros. | ||
""" | ||
|
||
__slots__ = [] | ||
|
||
HEADER_LINE = Line([IntegerField(4, 10)]) | ||
DATA_LINE = Line( | ||
[ # type: ignore | ||
IntegerField(4, 2), | ||
] | ||
+ [FloatField(15, 7 + 15 * i, 7, format="E") for i in range(len(MESES_DF))] # type: ignore | ||
) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
from inewave.config import MESES_DF | ||
|
||
from cfinterface.components.line import Line | ||
from cfinterface.components.literalfield import LiteralField | ||
from cfinterface.components.integerfield import IntegerField | ||
from cfinterface.components.floatfield import FloatField | ||
|
||
from inewave.nwlistop.modelos.blocos.valoresseriepatamar import ( | ||
ValoresSeriePatamar, | ||
) | ||
|
||
|
||
class CviolEletricaAnos(ValoresSeriePatamar): | ||
""" | ||
Bloco com as informações das tabelas de custo de violação de | ||
restrições elétricas especiais por restrição por mês/ano de estudo. | ||
""" | ||
|
||
__slots__ = [] | ||
|
||
HEADER_LINE = Line([IntegerField(4, 10)]) | ||
DATA_LINE = Line( | ||
[ # type: ignore | ||
IntegerField(4, 2), | ||
LiteralField(5, 6), | ||
] | ||
+ [FloatField(9, 11 + 9 * i, 1) for i in range(len(MESES_DF))] # type: ignore | ||
) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
from inewave.config import MESES_DF | ||
|
||
from cfinterface.components.line import Line | ||
from cfinterface.components.literalfield import LiteralField | ||
from cfinterface.components.integerfield import IntegerField | ||
from cfinterface.components.floatfield import FloatField | ||
|
||
from inewave.nwlistop.modelos.blocos.valoresseriepatamar import ( | ||
ValoresSeriePatamar, | ||
) | ||
|
||
|
||
class ViolEletricaAnos(ValoresSeriePatamar): | ||
""" | ||
Bloco com as informações das tabelas de violação de | ||
restrições elétricas especiais por restrição por mês/ano de estudo. | ||
""" | ||
|
||
__slots__ = [] | ||
|
||
HEADER_LINE = Line([IntegerField(4, 10)]) | ||
DATA_LINE = Line( | ||
[ # type: ignore | ||
IntegerField(4, 2), | ||
LiteralField(5, 6), | ||
] | ||
+ [FloatField(9, 11 + 9 * i, 1) for i in range(len(MESES_DF))] # type: ignore | ||
) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
from inewave.config import MESES_DF | ||
|
||
from cfinterface.components.line import Line | ||
from cfinterface.components.integerfield import IntegerField | ||
from cfinterface.components.floatfield import FloatField | ||
|
||
from inewave.nwlistop.modelos.blocos.valoresserie import ( | ||
ValoresSerie, | ||
) | ||
|
||
|
||
class ViolNegVretiruhAnos(ValoresSerie): | ||
""" | ||
Bloco com as informações das tabelas de desvio negativo | ||
da retirada de água por usina por mês/ano de estudo. | ||
""" | ||
|
||
__slots__ = [] | ||
|
||
HEADER_LINE = Line([IntegerField(4, 10)]) | ||
DATA_LINE = Line( | ||
[ # type: ignore | ||
IntegerField(4, 2), | ||
] | ||
+ [FloatField(9, 14 + 9 * i, 2) for i in range(len(MESES_DF))] # type: ignore | ||
) |
Oops, something went wrong.