PyPSA / PyPSA/pypsa-usa

GridEmission Demand Duplicates

Open Beginner friendly
#272 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

documentation
Dominant language
Python
Stars
148
Forks
55
Avg merge
2d 11h
Merged PRs (30d)
18

Description

Type of documentation issue

Missing Information

Issue Description

When using grid emissions electricity loads, there are certain timesteps that have duplicate values. I see in the code we just drop the first values, and its not really clear why thats happening. Would be good to just leave a comment in the code on the reason.

https://github.com/PyPSA/pypsa-usa/blob/37d9d43d1aeeebf56d93f3b1707a69de74d5e8c2/workflow/scripts/build_demand.py#L284-L293

These are the overlaps for 2019

image

Link to existing documentation

No response

Suggested Update

No response

Additional Info

No response

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open workflow/scripts/build_demand.py around lines 284-293 and inspect how duplicate grid-emissions timesteps are handled. Trace why the first overlapping values are dropped, then add a concise comment explaining that reason. Done means the code documents the overlap behavior without changing its logic.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.