Skip to main content

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.

Release files for tsoc-data-analysis 1.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tsoc-data-analysis 1.3.1
File Size Uploaded
tsoc_data_analysis-1.3.1.tar.gz 74.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tsoc-data-analysis 1.3.1
File Interpreter ABI Platform
tsoc_data_analysis-1.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 150.2 kB

Release files / tsoc_data_analysis-1.3.1.tar.gz

Download URL tsoc_data_analysis-1.3.1.tar.gz
Size 74.4 kB
Tags Source
SHA-256 checksum
How to use checksums
3611bf7365a491fadfb1a5e0fd4d646e115d24250cd0427453569ae18c79301c
BLAKE2b-256 checksum
How to use checksums
e300b683c0fc97840d935c4b934afb0892f0eb0fcf43ab960e6bfa05ff1c6af4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2025.

Transparency log

Release files / tsoc_data_analysis-1.3.1-py3-none-any.whl

Download URL tsoc_data_analysis-1.3.1-py3-none-any.whl
Size 75.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c81466daa9b7dbc05d0a4d1e8e05de274678e696305658eba966a6a1f18cf06b
BLAKE2b-256 checksum
How to use checksums
33a632f0e077957736e738f1d238de8f2f979757dcc71cf09a3772d2c0412c6e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

1.3.1 This release

2 release files

1.3.0

2 release files

1.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page