[FEATURE] heat_coupling: true fails with PyPSA 0.35.1 - "cannot rename 'Bus'"
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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