Skip to main content

A comprehensive Python tool for analyzing TSOC power system operational data from Excel files

Project description

TSOC Data Analysis

Author: Sustainable Power Systems Lab (SPSL), https://sps-lab.org, contact: info@sps-lab.org

A comprehensive Python tool for analyzing TSOC power system operational data from Excel files. Provides a powerful command-line interface (CLI) and modular Python API for load analysis, generator categorization, wind power analysis, reactive power calculations, and representative operating point extraction.

License Python Documentation PyPI

📖 Full Documentation

For complete installation instructions, detailed usage examples, configuration options, and troubleshooting, visit:

https://tsoc-data-analysis.sps-lab.org/

Quick Installation

pip install tsoc-data-analysis

Quick Start

Python API

from tsoc_data_analysis import execute, extract_representative_ops

# Load and analyze data
success, df = execute(month='2024-01', data_dir='raw_data', output_dir='results')
if success:
    # Extract representative points
    rep_df, diagnostics = extract_representative_ops(
        df, max_power=450, MAPGL=200, output_dir='results'
    )

Key Features

  • Month-based data filtering for efficient processing
  • Load calculations (Total Load, Net Load) with statistics
  • Wind power analysis with generation profiles
  • Generator categorization (Voltage Control vs PQ Control)
  • Reactive power analysis with comprehensive calculations
  • Data validation with advanced gap filling and anomaly detection
  • Representative operating points extraction using K-means clustering
  • Comprehensive logging and error handling

Requirements

  • Python 3.7+
  • pandas>=1.3.0, numpy>=1.20.0, matplotlib>=3.3.0, seaborn>=0.11.0
  • openpyxl>=3.0.0, scikit-learn>=1.0.0, scipy>=1.7.0
  • psutil>=5.8.0, joblib>=1.1.0

Documentation Sections

Support

For detailed information, examples, and troubleshooting, please visit the full documentation.

License

Licensed under the Apache License 2.0. See LICENSE for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tsoc_data_analysis-1.3.1.tar.gz (74.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tsoc_data_analysis-1.3.1-py3-none-any.whl (75.8 kB view details)

Uploaded Python 3

File details

Details for the file tsoc_data_analysis-1.3.1.tar.gz.

File metadata

  • Download URL: tsoc_data_analysis-1.3.1.tar.gz
  • Upload date:
  • Size: 74.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tsoc_data_analysis-1.3.1.tar.gz
Algorithm Hash digest
SHA256 3611bf7365a491fadfb1a5e0fd4d646e115d24250cd0427453569ae18c79301c
MD5 cedcb366dd4bc06f5665ce3b28a12836
BLAKE2b-256 e300b683c0fc97840d935c4b934afb0892f0eb0fcf43ab960e6bfa05ff1c6af4

See more details on using hashes here.

Provenance

The following attestation bundles were made for tsoc_data_analysis-1.3.1.tar.gz:

Publisher: publish-pypi.yml on SPS-L/TSOC-data-analysis

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tsoc_data_analysis-1.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for tsoc_data_analysis-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c81466daa9b7dbc05d0a4d1e8e05de274678e696305658eba966a6a1f18cf06b
MD5 16115070edac9b961162dd179293472b
BLAKE2b-256 33a632f0e077957736e738f1d238de8f2f979757dcc71cf09a3772d2c0412c6e

See more details on using hashes here.

Provenance

The following attestation bundles were made for tsoc_data_analysis-1.3.1-py3-none-any.whl:

Publisher: publish-pypi.yml on SPS-L/TSOC-data-analysis

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page