Skip to content

Commit

Permalink
Merge pull request #271 from wgst/load_vec
Browse files Browse the repository at this point in the history
Fix model loading for vector-type totaldegree
  • Loading branch information
cortner authored Oct 22, 2024
2 parents 03bd5a9 + 0d21c82 commit 05f95bb
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/json_interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,15 @@ function _sanitize_arg(arg)
end

function _sanitize_dict(dict)
return Dict(Symbol(key) => _sanitize_arg(dict[key]) for key in keys(dict))
d = Dict()
for key in keys(dict)
if key == "totaldegree"
d[Symbol(key)] = Int64.(dict[key])
else
d[Symbol(key)] = _sanitize_arg(dict[key])
end
end
return d
end

##
Expand Down

0 comments on commit 05f95bb

Please sign in to comment.