AutoTUST is a comprehensive Python-based tool for automating and analyzing TUST (Tarifa de Uso do Sistema de Transmissão) calculations in the Brazilian electrical system. It provides a suite of functionalities for processing electrical system data, running Nodal v61 simulations, and generating insightful reports and visualizations.
- Data loading and processing from various file formats (.GER, .TUH, .R61, .NOS)
- Automated execution of Nodal v61 simulations
- Generation of CSV reports for TUST results
- Interactive Streamlit dashboard for data visualization and analysis
- Various utility scripts for specific data processing tasks
-
Clone the repository:
git clone https://github.com/your-username/autotust.git cd autotust -
Create and activate a virtual environment:
make_venv.bat -
Install the required dependencies:
pip install -r requirements.txt
AutoTUST can be used in three main ways:
-
Run Nodal v61 simulations:
autotust nodal path/to/case/folder -
Generate TUST results:
autotust output path/to/case/folder -
Launch the Streamlit dashboard:
autotust dashboard
autotust.py: Main script containing core functionalitydashboard.py: Streamlit dashboard for data visualizationscripts/: Folder containing various utility scriptsbases/: Directory for storing case datamake_exe.bat: Script for building the executablemake_venv.bat: Script for setting up the virtual environmentrequirements.txt: List of Python dependenciesautotust.spec: PyInstaller specification file
To create a standalone executable:
make_exe.bat
The executable will be created in the dist/ directory.
Contributions to AutoTUST are welcome! Please feel free to submit pull requests, create issues or spread the word.
This project is licensed under the MIT License - see the LICENSE file for details.