Divide by zero warnings in fusion_reactions.py
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 71
- Forks
- 27
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 33
Description
Occurs when running integration or regression tests.
process/fusion_reactions.py:769: RuntimeWarning: divide by zero encountered in divide
xi = ((reaction_constants.bg**2) / (4.0 * theta)) ** (1 / 3)
process/fusion_reactions.py:774: RuntimeWarning: invalid value encountered in multiply
1.0e-6
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 warnings in the integration or regression tests and inspect process/fusion_reactions.py around lines 769 and 774. Determine which inputs produce the zero divisor and invalid multiplication, then verify the warnings no longer occur while the affected tests still pass.
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
- 50/100