Skip to content

Commit

Permalink
use ordered dicts for examples (#726)
Browse files Browse the repository at this point in the history
  • Loading branch information
chriscoey authored May 31, 2021
1 parent 162331c commit 012786a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/Examples.jl
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,12 @@ end
function get_test_instances()
test_insts = OrderedDict{String, OrderedDict}()
for mod in model_types
mod_insts = test_insts[mod] =
OrderedDict{String, Tuple{Type{<:ExampleInstance}, Dict}}()
mod_insts = test_insts[mod] = OrderedDict()
for ex in model_type_examples(mod)
mod_insts[ex] = get_test_instances(mod, ex)
end
end
return test_insts
end


end

0 comments on commit 012786a

Please sign in to comment.