NatLabRockies / NatLabRockies/H2Integrate
A grid buy price list cannot be assigned after setting up the problem
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 26
- Forks
- 44
- Avg merge
- 3d 22h
- Merged PRs (30d)
- 16
Description
A grid buy price list cannot be assigned after setting up the problem
If a grid buy price is initialized as a single value (set to one value or not set), then it is given the size of 1. If you then try to assign a list of prices to that variable that you've loaded in, for example, you get an error saying that you cannot assign a variable of length 8760 to a variable of length 1. This means that you can only define a grid buy price list from the yaml file.
How to reproduce
Relevant output
System Information
- OS: <macOS 12.4>
- Python version: <3.11.4>
- H2Integrate version: <0.1.1>
- <Installed from source using an editable installation with developer tools:
pip install -e .[develop]> - Commit hash:
- <Installed from source using an editable installation with developer tools:
Relevant library versions
| Package | Version |
|---|---|
| hopp | <3.1.1> |
| numpy | <1.26.4> |
| Pyomo | <6.8.0> |
| scipy | <1.14.1> |
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
No source file or test is named. Start by reproducing the issue after setting up the problem: initialize the grid buy price as a scalar, load a price list, and assign it; trace where the length-1 value is validated. Done means a configured scalar can be replaced by the loaded list without the length-mismatch error, with coverage for both initialization paths.
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
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100