@@ -330,17 +330,17 @@ struct MissingGuessError <: Exception
330
330
vals:: Vector{Any}
331
331
end
332
332
333
- function Base. showerror (io:: IO , err:: MissingGuessError )
334
- println (io,
335
- """
336
- Cyclic guesses detected in the system. Symbolic values were found for the following variables/parameters in the map: \
337
- """ )
333
+ function Base. showerror (io:: IO , err:: MissingGuessError )
334
+ println (io,
335
+ """
336
+ Cyclic guesses detected in the system. Symbolic values were found for the following variables/parameters in the map: \
337
+ """ )
338
338
for (sym, val) in zip (err. syms, err. vals)
339
339
println (io, " $sym => $val " )
340
340
end
341
341
println (io,
342
- """
343
- In order to resolve this, please provide additional numeric guesses so that the chain can be resolved to assign numeric values to each variable. """ )
342
+ """
343
+ In order to resolve this, please provide additional numeric guesses so that the chain can be resolved to assign numeric values to each variable. """ )
344
344
end
345
345
346
346
"""
@@ -364,7 +364,8 @@ Keyword arguments:
364
364
"""
365
365
function better_varmap_to_vars (varmap:: AbstractDict , vars:: Vector ;
366
366
tofloat = true , use_union = true , container_type = Array,
367
- toterm = default_toterm, promotetoconcrete = nothing , check = true , allow_symbolic = false , is_initializeprob = false )
367
+ toterm = default_toterm, promotetoconcrete = nothing , check = true ,
368
+ allow_symbolic = false , is_initializeprob = false )
368
369
isempty (vars) && return nothing
369
370
370
371
if check
@@ -382,8 +383,8 @@ function better_varmap_to_vars(varmap::AbstractDict, vars::Vector;
382
383
end
383
384
384
385
if ! isempty (missingsyms)
385
- is_initializeprob ? throw (MissingGuessError (missingsyms, missingvals)) :
386
- throw (UnexpectedSymbolicValueInVarmap (missingsyms[1 ], missingvals[1 ]))
386
+ is_initializeprob ? throw (MissingGuessError (missingsyms, missingvals)) :
387
+ throw (UnexpectedSymbolicValueInVarmap (missingsyms[1 ], missingvals[1 ]))
387
388
end
388
389
end
389
390
0 commit comments