Skip to content

Bug-fix: plot_summary script generating empty pdfs.#1098

Merged
lisazeyen merged 2 commits intoPyPSA:masterfrom
bobbyxng:plot_summary_fix
Jun 11, 2024
Merged

Bug-fix: plot_summary script generating empty pdfs.#1098
lisazeyen merged 2 commits intoPyPSA:masterfrom
bobbyxng:plot_summary_fix

Conversation

@bobbyxng
Copy link
Copy Markdown
Collaborator

Changes proposed in this Pull Request

  • Changes snakemake output of plot_summary to .svg:
  • costs=RESULTS + "graphs/costs.svg",
  • energy=RESULTS + "graphs/energy.svg",
  • balances=RESULTS + "graphs/balances-energy.svg",
  • For unknown reasons, plot_summary generates empty pdf outputs when called from CI (either through snakemake workflow or python scripts/plot_summary.py). This problem is mitigated when using .svg exports instead.

Checklist

  • I tested my contribution locally and it seems to work fine.
  • Code and workflow changes are sufficiently documented.
  • Changed dependencies are added to envs/environment.yaml.

@bobbyxng bobbyxng requested a review from fneum June 11, 2024 13:15
@lisazeyen lisazeyen enabled auto-merge June 11, 2024 13:44
@lisazeyen lisazeyen merged commit f2014c2 into PyPSA:master Jun 11, 2024
@bobbyxng bobbyxng deleted the plot_summary_fix branch June 20, 2024 22:00
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