ukaea / ukaea/PROCESS

Divide by zero warnings in current_drive.py

Open
#4,025 1 comment 0 reactions 0 assignees View on GitHub

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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.