Skip to content

add rule plot_heatmap_timeseries#1590

Merged
fneum merged 3 commits intomasterfrom
fneum/plot_heatmap_ts
Mar 19, 2025
Merged

add rule plot_heatmap_timeseries#1590
fneum merged 3 commits intomasterfrom
fneum/plot_heatmap_ts

Conversation

@fneum
Copy link
Copy Markdown
Member

@fneum fneum commented Mar 17, 2025

Changes proposed in this Pull Request

Examples:

image

image

image

Checklist

  • I tested my contribution locally and it works as intended.
  • Code and workflow changes are sufficiently documented.
  • Changed dependencies are added to envs/environment.yaml.
  • Changes in configuration options are added in config/config.default.yaml.
  • Changes in configuration options are documented in doc/configtables/*.csv.
  • Sources of newly added data are documented in doc/data_sources.rst.
  • A release note doc/release_notes.rst is added.

@fneum fneum requested a review from Copilot March 17, 2025 14:39
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a new rule to generate heatmap time series plots for various network metrics such as marginal prices, utilisation rates, and state-of-charge profiles.

  • Introduces a new plotting script (plot_heatmap_timeseries.py) for generating heatmap time series from network data.
  • Updates the default configuration file to include settings for marginal prices, utilisation rates, and SOC heatmaps.

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

File Description
scripts/plot_heatmap_timeseries.py Adds functions for unstacking time series data and plotting heatmaps, including handling of utilisation rates, marginal prices, and SOC metrics.
config/config.default.yaml Extends configuration settings to support the new heatmap timeseries plots.
Comments suppressed due to low confidence (1)

scripts/plot_heatmap_timeseries.py:20

  • [nitpick] The parameter name 'sns' conflicts with the imported seaborn module alias. Consider renaming it to avoid confusion, for example to 'time_index' or 'date_range_cfg'.
def unstack_day_hour(s: pd.Series, sns: pd.DatetimeIndex) -> pd.DataFrame:

@fneum fneum added this to the v2025.03.0 milestone Mar 18, 2025
@fneum fneum merged commit 26cc5b8 into master Mar 19, 2025
9 of 11 checks passed
@fneum fneum deleted the fneum/plot_heatmap_ts branch March 19, 2025 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants