Skip to content

Commit

Permalink
Merge pull request #71 from JuliaGeometry/sjk/doc1
Browse files Browse the repository at this point in the history
Doc Updates for v0.6
  • Loading branch information
sjkelly authored Jul 3, 2022
2 parents 1f50bd5 + 445ac1d commit e3c0946
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 4 deletions.
4 changes: 3 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ version = "0.6.0"
julia = "0.7, 1"

[extras]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
OffsetArrays = "6fe1bfb0-de20-5000-8ca7-80f57d26f881"
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["LinearAlgebra", "StatsBase", "Test", "OffsetArrays", "StaticArrays"]
test = ["Aqua", "JET", "LinearAlgebra", "StatsBase", "Test", "OffsetArrays", "StaticArrays"]
14 changes: 11 additions & 3 deletions src/Contour.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ export

import Base: push!, length, eltype, show

"""
Curve2{T}
Containing an extracted chain of points, where `T` is a vector-like element.
"""
struct Curve2{T}
vertices::Vector{T}
end
Expand Down Expand Up @@ -54,8 +59,11 @@ contour levels. Each of the objects support [`level`](@ref) and
levels(cc::ContourCollection) = cc.contours

"""
`contour(x, y, z, level::Number)` Trace a single contour level, indicated by the
argument `level`.
contour(x, y, z, level::Number)
contour(x, y, z, level::Number, VT::Type)
Trace a single contour level, indicated by the argument `level`. The extracted vertex type
maybe be specified by `VT`.
You'll usually call [`lines`](@ref) on the output of `contour`, and then iterate
over the result.
Expand All @@ -73,7 +81,7 @@ end
You'll usually call [`levels`](@ref) on the output of `contours`.
"""
contours(::Any...) = error("This method exists only for documentation purposes")
function contours end

"""
`contours(x,y,z,levels)` Trace the contour levels indicated by the `levels`
Expand Down
14 changes: 14 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,17 @@ include("interface.jl")

#issue 59
@inferred collect(())

using Aqua
# Aqua tests
# Intervals brings a bunch of ambiquities unfortunately
Aqua.test_all(Contour)


@static if Base.VERSION >= v"1.7"

@info "Running JET..."

using JET
display(JET.report_package(Contour))
end

2 comments on commit e3c0946

@sjkelly
Copy link
Member Author

@sjkelly sjkelly commented on e3c0946 Jul 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/63557

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.6.0 -m "<description of version>" e3c0946295b8d3bfafd4b23a7f5d9c1f2fda6295
git push origin v0.6.0

Please sign in to comment.