Skip to content

Commit

Permalink
increase test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
stecrotti committed Dec 10, 2024
1 parent c52ca08 commit 15e1f52
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/glauber_small_tree.jl
Original file line number Diff line number Diff line change
Expand Up @@ -331,10 +331,11 @@ end
ising = Ising(J, h, β)
gl = Glauber(ising, 0)
bp = mpbp_stationary(gl)
@test is_periodic(bp)
svd_trunc = TruncVUMPS(12)

spin(x, i) = 3-2x; spin(x) = spin(x, 0)
iterate!(bp; tol=1e-14, maxiter=10, svd_trunc)
iterate!(bp; tol=1e-14, maxiter=10, svd_trunc, cb=CB_BPVUMPS(bp))
m_bp = [only(m) for m in means(spin, bp)]

pb, = pair_beliefs(bp)
Expand All @@ -345,6 +346,7 @@ end
iterate!(bp_slow; tol=1e-14, maxiter=10, svd_trunc)
m_bp_slow = [only(m) for m in means(spin, bp_slow)]
@test m_bp_slow m_bp
reset!(bp)
end

end

2 comments on commit 15e1f52

@stecrotti
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/121121

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.9.0 -m "<description of version>" 15e1f529787952b1a54fe692453b01858e18ec9b
git push origin v0.9.0

Please sign in to comment.