@@ -177,7 +177,7 @@ $(TYPEDSIGNATURES)
177177
178178Read a UAI problem from an artifact.
179179"""
180- function read_uai_problem (problem:: AbstractString ; eltype= Float64):: UAIInstance
180+ function read_uai_problem (problem:: AbstractString ; eltype = Float64):: UAIInstance
181181 uai_filepath = joinpath (artifact " MAR_prob" , problem * " .uai" )
182182 uai_evid_filepath = joinpath (artifact " MAR_prob" , problem * " .uai.evid" )
183183 uai_mar_filepath = joinpath (artifact " MAR_sol" , problem * " .uai.MAR" )
@@ -189,17 +189,17 @@ $(TYPEDSIGNATURES)
189189
190190Read a UAI problem from a file.
191191"""
192- function uai_problem_from_file (uai_filepath:: String ; uai_evid_filepath= " " , uai_mar_filepath= " " , eltype= Float64):: UAIInstance
192+ function uai_problem_from_file (uai_filepath:: String ; uai_evid_filepath = " " , uai_mar_filepath = " " , eltype = Float64):: UAIInstance
193193 nvars, cards, ncliques, factors = read_uai_file (uai_filepath; factor_eltype = eltype)
194194 obsvars, obsvals = read_uai_evid_file (uai_evid_filepath)
195195 reference_marginals = isempty (uai_mar_filepath) ? Vector{eltype}[] : read_uai_mar_file (uai_mar_filepath)
196196 return UAIInstance (nvars, ncliques, cards, factors, obsvars, obsvals, reference_marginals)
197197end
198198
199- function uai_problem_from_string (uai:: String ; eltype= Float64):: UAIInstance
199+ function uai_problem_from_string (uai:: String ; eltype = Float64):: UAIInstance
200200 nvars, cards, ncliques, factors = read_uai_string (uai; factor_eltype = eltype)
201201 return UAIInstance (nvars, ncliques, cards, factors, Int[], Int[], Vector{eltype}[])
202202end
203203
204204# patch to get content by broadcasting into array, while keep array size unchanged.
205- broadcasted_content (x) = asarray (content .(x), x)
205+ broadcasted_content (x) = asarray (content .(x), x)
0 commit comments