Skip to content

Commit 58f93c4

Browse files
committed
revert
1 parent 9c95970 commit 58f93c4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/variables.jl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ applicable.
158158
"""
159159
function varmap_to_vars(varmap, varlist; defaults = Dict(), check = true,
160160
toterm = default_toterm, promotetoconcrete = nothing,
161-
tofloat = true)
161+
tofloat = true, use_union = true)
162162
varlist = collect(map(unwrap, varlist))
163163

164164
# Edge cases where one of the arguments is effectively empty.
@@ -186,15 +186,14 @@ function varmap_to_vars(varmap, varlist; defaults = Dict(), check = true,
186186

187187
vals = if eltype(varmap) <: Pair # `varmap` is a dict or an array of pairs
188188
varmap = todict(varmap)
189-
_varmap_to_vars(varmap, varlist; defaults = defaults, check = check,
190-
toterm = toterm)
189+
_varmap_to_vars(varmap, varlist; defaults, check, toterm)
191190
else # plain array-like initialization
192191
varmap
193192
end
194193

195194
promotetoconcrete === nothing && (promotetoconcrete = container_type <: AbstractArray)
196195
if promotetoconcrete
197-
vals = promote_to_concrete(vals; tofloat = tofloat, use_union = false)
196+
vals = promote_to_concrete(vals; tofloat, use_union)
198197
end
199198

200199
if isempty(vals)

0 commit comments

Comments
 (0)