Resolve runtime warning: invalid value encountered in cast
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- numpy, python
- Domain
- data, testing-qa
Research direction
Start with the warning locations in lib/iris/analysis/_regrid.py and the tests listed in the report, especially test_RectilinearRegridder.py and test_MAX_RUN.py. Check the open pull request #7161 for the work already underway. Done means the affected tests run without the reported invalid-value cast warnings.
Written by the indexing model from the issue text.
Description
📰 Custom Issue
Written up from #5465.
lib/iris/tests/unit/analysis/test_MAX_RUN.py: 38 warnings
/home/h05/achamber/.conda/envs/iris-dev/lib/python3.11/site-packages/numpy/core/numeric.py:407: RuntimeWarning: invalid value encountered in cast
multiarray.copyto(res, fill_value, casting='unsafe')
lib/iris/tests/unit/analysis/regrid/test_RectilinearRegridder.py::Test__regrid__extrapolation_modes::test_method_result_types
/net/home/h05/achamber/git/iris/lib/iris/analysis/_regrid.py:836: RuntimeWarning: invalid value encountered in cast
data[tuple(index)] = interpolate(src_subset)
- Dominant language
- Python
- Stars
- 724
- Forks
- 317
- Avg merge
- 3d 20h
- Merged PRs (30d)
- 9
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.
More from SciTools/iris
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
bancolombia/sentinel#23 ·
-
test md OpenCI
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
bug client
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100