Skip to content

Commit

Permalink
[ci skip] Fix precompilation
Browse files Browse the repository at this point in the history
  • Loading branch information
Liozou committed Jun 10, 2022
1 parent 6f048ee commit a5ec34e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "PeriodicGraphs"
uuid = "18c5b727-b240-4874-878a-f2e242435bab"
authors = ["Lionel Zoubritzky [email protected]"]
version = "0.9.0"
version = "0.9.1"

[deps]
Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6"
Expand Down
4 changes: 2 additions & 2 deletions src/algorithms/rings.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1356,12 +1356,12 @@ function strong_erings(rs::Vector{Vector{Int}}, g::PeriodicGraph{D}, depth=15, r
return origin, NoSymmetryGroup(length(ret)), ecycles, kp
end

function strong_erings(g::PeriodicGraph, depth=15, symmetries::AbstractSymmetryGroup=NoSymmetryGroup(g), dist::DistanceRecord=DistanceRecord(g,depth))
function strong_erings(g::PeriodicGraph, depth::Integer=15, symmetries::AbstractSymmetryGroup=NoSymmetryGroup(g), dist::DistanceRecord=DistanceRecord(g,depth))
rs, symmg = rings(g, depth, symmetries, dist)
keep, symms, erings, kp = strong_erings(rs, g, depth, symmg)
return rs[keep], symms, erings, kp
end
function strong_erings(g::PeriodicGraph, symmetries::AbstractSymmetryGroup=NoSymmetryGroup(g), dist::DistanceRecord=DistanceRecord(g,15))
function strong_erings(g::PeriodicGraph, symmetries::AbstractSymmetryGroup, dist::DistanceRecord=DistanceRecord(g,15))
strong_erings(g, 15, symmetries, dist)
end

Expand Down
12 changes: 12 additions & 0 deletions src/precompile.jl
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,11 @@ function _precompile_()
@enforce Base.precompile(Tuple{typeof(swap_axes!),PeriodicGraph{i},NTuple{i,Int}})
@enforce Base.precompile(Tuple{typeof(truncated_graph),PeriodicGraph{i}})
@enforce Base.precompile(Tuple{typeof(quotient_graph),PeriodicGraph{i}})
for N in 1:i
@enforce Base.precompile(Tuple{typeof(slice_graph), PeriodicGraph{i}, SVector{N,Int}})
@enforce Base.precompile(Tuple{typeof(slice_graph), PeriodicGraph{i}, NTuple{N,Int}})
end
@enforce Base.precompile(Tuple{typeof(slice_graph), PeriodicGraph{i}, Vector{Int}})

# Ring statistics
dag{T} = Vector{PeriodicGraphs.JunctionNode{T}}
Expand Down Expand Up @@ -222,6 +227,13 @@ function _precompile_()
@enforce Base.precompile(Tuple{typeof(PeriodicGraphs.sort_cycles), PeriodicGraph{i}, Vector{Vector{Int}}, Int, Tuple{Vector{Tuple{PeriodicVertex{i},PeriodicVertex{i}}}, Dict{Tuple{PeriodicVertex{i},PeriodicVertex{i}},Int}}})
@enforce Base.precompile(Tuple{typeof(PeriodicGraphs.sort_cycles), PeriodicGraph{i}, Vector{Vector{Int}}, Int})
@enforce Base.precompile(Tuple{typeof(PeriodicGraphs.sort_cycles), PeriodicGraph{i}, Vector{Vector{Int}}})
@enforce Base.precompile(Tuple{typeof(strong_erings), Vector{Vector{Int}}, PeriodicGraph{i}, Int, nosymm})
@enforce Base.precompile(Tuple{typeof(strong_erings), Vector{Vector{Int}}, PeriodicGraph{i}, Int})
@enforce Base.precompile(Tuple{typeof(strong_erings), Vector{Vector{Int}}, PeriodicGraph{i}})
@enforce Base.precompile(Tuple{typeof(strong_erings), PeriodicGraph{i}, Int, nosymm, dist})
@enforce Base.precompile(Tuple{typeof(strong_erings), PeriodicGraph{i}, Int, nosymm})
@enforce Base.precompile(Tuple{typeof(strong_erings), PeriodicGraph{i}, Int})
@enforce Base.precompile(Tuple{typeof(strong_erings), PeriodicGraph{i}})
@enforce Base.precompile(Tuple{typeof(strong_rings), Vector{Vector{Int}}, PeriodicGraph{i}, Int, nosymm})
@enforce Base.precompile(Tuple{typeof(strong_rings), Vector{Vector{Int}}, PeriodicGraph{i}, Int})
@enforce Base.precompile(Tuple{typeof(strong_rings), Vector{Vector{Int}}, PeriodicGraph{i}})
Expand Down

2 comments on commit a5ec34e

@Liozou
Copy link
Owner Author

@Liozou Liozou commented on a5ec34e Jun 10, 2022

Choose a reason for hiding this comment

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

@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/62118

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.9.1 -m "<description of version>" a5ec34e8a8d5eed16421e40e1afad63160c0585f
git push origin v0.9.1

Please sign in to comment.