Divide by zero warnings in current_drive.py
Open
Nobody has claimed this yet.
HCD
- Dominant language
- Python
- Stars
- 71
- Forks
- 27
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 33
Description
Occurs when running integration or regression tests.
process/current_drive.py:1991: RuntimeWarning: invalid value encountered in scalar divide
* (c_hcd_driven / p_hcd_injected)
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 at process/current_drive.py:1991 and reproduce the warning while running the integration or regression tests. Trace the values of c_hcd_driven and p_hcd_injected to determine the zero-denominator case, then verify that the relevant tests complete without the RuntimeWarning.
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
- Needs clarification
- Newbie friendliness
- 35/100