Create an `ApproxConstraint` class
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
Start by locating the existing Constraint implementation and its tests, then review the linked discussion for the proposed ApproxConstraint API. Compare the slower range-based approach with the floating-point representation approach and clarify the intended behavior before defining what completion and test coverage should require.
Written by the indexing model from the issue text.
Description
Would solve the problem with floating points.
Could also consider a tolerance argument for Constraint, but there could be clashes with actual variable names.
Team have discussed an alternative API something like ApproxConstraint, which explicitly handles the floating point cases.
- Slower, easier version: convert the
Constraintinto a range functionConstraint - Faster, trickier version: work out what the actual floating point representation of the provided number should be, accounting for the type of the coordinate in question, then use that value in the
Constraintinstead.
Originally posted by @trexfeathers in https://github.com/SciTools/iris/discussions/4744#discussioncomment-2774618
- 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