Skip to content

Commit

Permalink
Fix psis test (#148)
Browse files Browse the repository at this point in the history
* Fix test

* Increment version number
  • Loading branch information
sethaxen authored Jan 18, 2022
1 parent ab1163b commit 698fff9
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions test/test_stats.jl
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,15 @@ using DataFrames: DataFrames
@test k result.pareto_shape

# check against Python ArviZ
# NOTE: currently these implementations disagree
# see https://github.com/arviz-devs/arviz/issues/1941
logw_smoothed2, k2 = ArviZ.arviz.psislw(copy(logw), 0.9)
# NOTE: currently the smoothed weights disagree, while the shapes agree
# see https://github.com/arviz-devs/arviz/issues/1941
@test_broken logw_smoothed logw_smoothed2
@test_broken k k2
if length(sz) == 1
@test k k2[] # k2 is a 0-dimensional array
else
@test k k2
end
end
end

Expand Down

2 comments on commit 698fff9

@sethaxen
Copy link
Member 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/52660

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.5.9 -m "<description of version>" 698fff9e540d614ab1110cf43e5c6c61c090979b
git push origin v0.5.9

Please sign in to comment.