PyPSA / PyPSA/PyPSA-China

[FEATURE] heat_coupling: true fails with PyPSA 0.35.1 - "cannot rename 'Bus'"

Open
#101 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
44
Forks
13
PR merge metrics
No merged PRs in 30d

Description

PyPSA-China version: 1.3.0
PyPSA version: 0.35.1
linopy version: 0.5.8
Error: ValueError: cannot rename 'Bus' because it is not a variable or dimension in this dataset
The error occurs in the define_nodal_balance_constraints function

Contributor guide

Open the contributing guide

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

Start by reproducing the failure with heat_coupling enabled using PyPSA-China 1.3.0, PyPSA 0.35.1, and linopy 0.5.8. Inspect define_nodal_balance_constraints, which the issue identifies as the failing entry point. Done means the function no longer raises the “cannot rename 'Bus'” ValueError and nodal balance constraints are defined successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.