Skip to content

Commit

Permalink
Fix saving of metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
bencardoen committed Oct 30, 2024
1 parent ebd3978 commit 8cd4c3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/SubPrecisionContactDetection.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1341,7 +1341,7 @@ end
Save metadata (dict) into fname (json)
"""
function save_meta(meta, fname)
function save_meta(fname, meta)
open(fname, "w") do io
JSON.print(io, meta)
end
Expand Down
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ using Distributions

@testset "meta" begin
args = get_defaults()
save_meta(args, "test.json")
save_meta("test.json", args)
fargs = read_meta("test.json")
@test args == fargs
end
Expand Down

0 comments on commit 8cd4c3c

Please sign in to comment.