Skip to content

Commit

Permalink
fix merge test
Browse files Browse the repository at this point in the history
  • Loading branch information
lmiq committed Dec 1, 2023
1 parent 2311bcf commit 93b7646
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/isapprox.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function Base.isapprox(r1::T, r2::T; debug = false) where {T<:CMTypes}
check = true
diff_list = Symbol[]
for field in fieldnames(T)
if field == :files
if field in [ :files, :Version ]
continue
end
x = getfield(r1, field)
Expand Down
3 changes: 2 additions & 1 deletion src/results.jl
Original file line number Diff line number Diff line change
Expand Up @@ -576,12 +576,13 @@ end
@test R.density.solvent 3 / R.volume.total
@test R.density.solvent_bulk 2 / R.volume.bulk

# Test loading a saved merged file
dir = "$(Testing.data_dir)/NAMD"
atoms = readPDB("$dir/structure.pdb")
tmao = Selection(select(atoms, "resname TMAO"), natomspermol = 14)
water = Selection(select(atoms, "water"), natomspermol = 3)

# save(R,"$dir/merged.json")
#save(R,"$dir/merged.json")
R_save = load("$dir/merged.json")

options = Options(
Expand Down
2 changes: 1 addition & 1 deletion test/data/NAMD/merged.json

Large diffs are not rendered by default.

0 comments on commit 93b7646

Please sign in to comment.