JuliaGeometry / JuliaGeometry/Contour.jl

When no contours are found, `contour` should not return a ContourLevel of 0 lines?

Open
#80 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
46
Forks
15
PR merge metrics
No merged PRs in 30d

Description

The hierarchy of types/structs you have makes it possible to have a ContourLevel at an isovalue but containing 0 lines, which doesn't make sense. Then, the lack of error means this simple function definition

https://github.com/JuliaGeometry/Contour.jl/blob/26994c47dcb9af88f2dc1961fb5291c8969afd1a/src/Contour.jl#L94

gives you a ContourCollection of 1 ContourLevel, but that contour has no lines. Can this interface be improved?

Contributor guide

No contributing guide indexed for this repository

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 src/Contour.jl line 94 and inspect the contour entry point and the ContourCollection/ContourLevel types. Determine the intended result when no contour lines are found; the work is done when that case no longer produces a ContourLevel containing zero lines, with behavior covered by the relevant tests if they exist.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
data-visualization
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.