A data-driven approach to strategizing US coal plant retirement using network analysis and contextual vulnerabilities.
Project description
Retire
⚠️ 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:
- Usage Guide - Step-by-step tutorial
- Data Sources - Available datasets
- Visualization Methods - Plotting capabilities
- Configuration - Customization options
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:
- Test Coverage: Write tests for new functionality
- Documentation: Update docs for API changes
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03255ceb06157f96ee98b68b30da757233e73f9b755d9ff28aaac590ed0d03d0
|
|
| MD5 |
236c6214bf03e8a628307c573f2de9e0
|
|
| BLAKE2b-256 |
8fb715f5d634787effaf67f49b57f897863b0d271d5645c32064f12da0eda685
|
File details
Details for the file retire_coal-0.1.0-py3-none-any.whl.
File metadata
- Download URL: retire_coal-0.1.0-py3-none-any.whl
- Upload date:
- Size: 210.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c133b29b101a8dc2306d027534815bba5ddf2a8723120b38c28e5b9808cae0e4
|
|
| MD5 |
7c7f2fc2af573e2c7cb9e20da3f77252
|
|
| BLAKE2b-256 |
c83a660e92619028a965d1f9b96d5e900818c9a021dc57d5b711b89c547e31a9
|