Skip to content

Commit

Permalink
Merge pull request #12 from COBREXA/sew-extend-variables-input-types
Browse files Browse the repository at this point in the history
Let `variables` take sets as well as vectors as input
  • Loading branch information
exaexa committed Dec 16, 2023
2 parents b0b09f0 + 8ffe64d commit 358e3e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/constraint_tree.jl
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ interval bound for all variables, it is impossible to use a tuple (since its
length is 2); in such case use `bound = Ref((minimum, maximum))`, which has the
correct length.
"""
function variables(; keys::Vector{Symbol}, bounds = nothing)
function variables(; keys::AbstractVector{Symbol}, bounds = nothing)
bs =
isnothing(bounds) ? Base.Iterators.cycle(tuple(nothing)) :
length(bounds) == 1 ? Base.Iterators.cycle(bounds) :
Expand Down

0 comments on commit 358e3e9

Please sign in to comment.