Metadata-Version: 2.4
Name: inewave
Version: 1.13.2
Summary: Pacote Python para manipulação dos arquivos de entrada e saída do NEWAVE
Project-URL: Documentation, https://rjmalves.github.io/inewave/
Project-URL: Repository, https://github.com/rjmalves/inewave/
Author-email: Rogerio Alves <rogerioalves.ee@gmail.com>
License: MIT License
        
        Copyright (c) 2022 Rogerio Alves
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE.md
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Typing :: Typed
Requires-Python: >=3.11
Requires-Dist: cfinterface>=1.9.0
Requires-Dist: numpy>=2.2.1
Requires-Dist: pandas>=3.0.0
Provides-Extra: dev
Requires-Dist: furo; extra == 'dev'
Requires-Dist: matplotlib; extra == 'dev'
Requires-Dist: mypy; extra == 'dev'
Requires-Dist: numpydoc; extra == 'dev'
Requires-Dist: plotly; extra == 'dev'
Requires-Dist: pre-commit; extra == 'dev'
Requires-Dist: pytest; extra == 'dev'
Requires-Dist: pytest-cov; extra == 'dev'
Requires-Dist: pytest-xdist; extra == 'dev'
Requires-Dist: ruff; extra == 'dev'
Requires-Dist: sphinx; extra == 'dev'
Requires-Dist: sphinx-gallery; extra == 'dev'
Provides-Extra: docs
Requires-Dist: furo; extra == 'docs'
Requires-Dist: matplotlib; extra == 'docs'
Requires-Dist: numpydoc; extra == 'docs'
Requires-Dist: plotly; extra == 'docs'
Requires-Dist: sphinx; extra == 'docs'
Requires-Dist: sphinx-gallery; extra == 'docs'
Provides-Extra: lint
Requires-Dist: mypy; extra == 'lint'
Requires-Dist: pre-commit; extra == 'lint'
Requires-Dist: ruff; extra == 'lint'
Provides-Extra: test
Requires-Dist: pytest; extra == 'test'
Requires-Dist: pytest-cov; extra == 'test'
Requires-Dist: pytest-xdist; extra == 'test'
Description-Content-Type: text/markdown

# inewave

> Pacote Python para leitura e escrita dos arquivos de entrada e saída do modelo NEWAVE e dos programas auxiliares NWLISTOP e NWLISTCF.

[![CI](https://github.com/rjmalves/inewave/actions/workflows/main.yml/badge.svg)](https://github.com/rjmalves/inewave/actions/workflows/main.yml)
[![codecov](https://codecov.io/gh/rjmalves/inewave/branch/main/graph/badge.svg?token=R9WPQHQGKF)](https://codecov.io/gh/rjmalves/inewave)
[![PyPI version](https://img.shields.io/pypi/v/inewave)](https://pypi.org/project/inewave/)
[![Python versions](https://img.shields.io/pypi/pyversions/inewave)](https://pypi.org/project/inewave/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Documentacao](https://img.shields.io/badge/docs-online-blue)](https://rjmalves.github.io/inewave)

O `inewave` é um pacote Python para manipulação dos arquivos de entrada e saída do programa [NEWAVE](http://www.cepel.br/pt_br/produtos/newave-modelo-de-planejamento-da-operacao-de-sistemas-hidrotermicos-interligados-de-longo-e-medio-prazo.htm). O NEWAVE é desenvolvido pelo [CEPEL](http://www.cepel.br) e utilizado para os estudos de planejamento e operação do Sistema Interligado Nacional (SIN).

## Funcionalidades

- Leitura e escrita dos arquivos de entrada do NEWAVE, com suporte a modificações programáticas de decks de PMO
- Leitura dos arquivos de saída do NEWAVE e dos programas auxiliares NWLISTCF e NWLISTOP
- Dados tabulares expostos como `DataFrame` do [pandas](https://pandas.pydata.org/), prontos para análise e visualização
- Interface orientada a objetos consistente: cada arquivo corresponde a uma classe com método `read` e, quando aplicável, método `write`
- Suporte a múltiplas versões de formato do mesmo arquivo, com seleção via argumento `version=` no método `read`
- Importação sob demanda (_lazy import_) para inicialização rápida mesmo com dezenas de classes disponíveis

## Exemplo Rapido

Leitura do arquivo de saída `pmo.dat` e acesso aos dados de convergência como DataFrame:

```python
from inewave.newave import Pmo

arq_pmo = Pmo.read("./pmo.dat")
arq_pmo.convergencia
```

Leitura de um arquivo de entrada, modificação de valores e escrita do resultado:

```python
from inewave.newave import Vazoes

arq_vazoes = Vazoes.read("./vazoes.dat")

# Sensibilidade: elevar todas as vazões históricas em 10%
arq_vazoes.vazoes *= 1.1

arq_vazoes.write("./vazoes_sensibilidade.dat")
```

## Instalacao

O `inewave` é compatível com Python 3.11, 3.12, 3.13 e 3.14.

Instalação a partir do PyPI:

```
pip install inewave
```

Instalação da versão de desenvolvimento diretamente do repositório:

```
pip install git+https://github.com/rjmalves/inewave
```

## Documentacao

A documentação completa do pacote está disponível em [rjmalves.github.io/inewave](https://rjmalves.github.io/inewave) e inclui:

- [Tutorial](https://rjmalves.github.io/inewave/geral/tutorial.html) — exemplos de leitura, escrita e modificação de arquivos
- [Arquitetura](https://rjmalves.github.io/inewave/geral/arquitetura.html) — estrutura interna do pacote e do framework cfinterface
- [Perguntas Frequentes](https://rjmalves.github.io/inewave/geral/faq.html) — dúvidas comuns dos usuários
- [Guia de Desempenho](https://rjmalves.github.io/inewave/geral/desempenho.html) — características de performance e resultados de benchmarks
- [Referencia da API](https://rjmalves.github.io/inewave/referencia) — documentação de todas as classes e propriedades públicas

## Contribuindo

Contribuições são bem-vindas. Consulte o arquivo [CONTRIBUTING.md](CONTRIBUTING.md) para instruções sobre como configurar o ambiente de desenvolvimento, executar os testes e enviar pull requests.

## Licenca

Distribuído sob a licença [MIT](LICENSE.md).
