Skip to content

Commit

Permalink
Re-add algorithm2power (#55)
Browse files Browse the repository at this point in the history
This was dropped by accident during a rebase and is used by the examples
  • Loading branch information
graeme-a-stewart authored Jun 7, 2024
1 parent 06080d6 commit 3c34d06
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/AlgorithmStrategyEnums.jl
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ const power2algorithm = Dict(-1 => JetAlgorithm.AntiKt,
0 => JetAlgorithm.CA,
1 => JetAlgorithm.Kt)

"""
algorithm2power
A dictionary that maps pp algorithm names to their corresponding power values.
The dictionary is created by iterating over the `power2algorithm` dictionary and swapping the keys and values.
"""
const algorithm2power = Dict((i.second, i.first) for i in power2algorithm)

"""
Base.tryparse(E::Type{<:Enum}, str::String)
Expand Down

0 comments on commit 3c34d06

Please sign in to comment.