Skip to main content

A data-driven approach to strategizing US coal plant retirement using network analysis and contextual vulnerabilities.

Project description

Retire

Python Version License Development Status

⚠️ Work in Progress: This is a v0 release. Features and APIs may change.

A Python package for US coal plant retirement analysis based on research published in Nature Energy. Provides data and analysis tools for understanding coal plant retirement strategies using contextual vulnerabilities.

Key Features

  • Comprehensive Dataset: Detailed coal plant data with operational and contextual factors
  • Network Analysis: Analyze plant relationships using similarity metrics
  • Visualization Suite: Rich plotting capabilities for retirement patterns
  • Research Reproducibility: Access to manuscript results and analysis

Quick Start

Installation

git clone https://github.com/Krv-Analytics/retire.git
cd retire
pip install uv
uv sync

Note: This package will soon be available as a pip-installable package.

pip install retire

Basic Usage

from retire import Retire, Explore

# Load data and create analysis objects
retire_obj = Retire()
explore = Explore(retire_obj.graph, retire_obj.raw_df)

# Visualize the network
fig, ax = explore.drawGraph(col='ret_STATUS')

# Create geographic map
fig, ax = explore.drawMap()

# Get manuscript results
group_analysis = retire_obj.get_group_report()
explanations = retire_obj.get_target_explanations()

Documentation

See the full documentation for detailed usage instructions:

API Overview

Main Classes

Retire - Main analysis class with data access and manuscript results Explore - Visualization toolkit for networks and geographic data

Data Loading

from retire.data import load_dataset, load_clean_dataset, load_projection, load_graph

Development

Running Tests

pytest

Contributing

This is a v0 WIP release. When contributing:

  1. Test Coverage: Write tests for new functionality
  2. Documentation: Update docs for API changes
  3. Code Style: Follow existing patterns and conventions

License

This project is licensed under the BSD 3-Clause License - see the LICENSE.md file for details.

Citation

If you use this package in your research, please cite:

@article{retire2025,
  title={Strategies to Accelerate US Coal Power Phaseout Using Contextual Retirement Vulnerabilities},
  author={Sidney Gathrid*, Jeremy Wayland*, Stuart Wayland,Ranjit Deshmukh,Grace Wu},
  journal={Nature Energy},
  year={2025},
}

Note: This package provides data and analysis tools for research purposes. Retirement strategies should be considered within broader energy policy and environmental justice contexts.

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

retire_coal-0.1.0.tar.gz (204.5 kB view details)

Uploaded Source

Built Distribution

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

retire_coal-0.1.0-py3-none-any.whl (210.9 kB view details)

Uploaded Python 3

File details

Details for the file retire_coal-0.1.0.tar.gz.

File metadata

  • Download URL: retire_coal-0.1.0.tar.gz
  • Upload date:
  • Size: 204.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.13

File hashes

Hashes for retire_coal-0.1.0.tar.gz
Algorithm Hash digest
SHA256 03255ceb06157f96ee98b68b30da757233e73f9b755d9ff28aaac590ed0d03d0
MD5 236c6214bf03e8a628307c573f2de9e0
BLAKE2b-256 8fb715f5d634787effaf67f49b57f897863b0d271d5645c32064f12da0eda685

See more details on using hashes here.

File details

Details for the file retire_coal-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for retire_coal-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c133b29b101a8dc2306d027534815bba5ddf2a8723120b38c28e5b9808cae0e4
MD5 7c7f2fc2af573e2c7cb9e20da3f77252
BLAKE2b-256 c83a660e92619028a965d1f9b96d5e900818c9a021dc57d5b711b89c547e31a9

See more details on using hashes here.

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