Skip to content

Commit b76b5f8

Browse files
Bump ArviZ compat to v0.13 (#46)
* Bump Julia lower bound * Refine Julia test versions * Update stdlib lower bounds * Remove outdated Julia version check * Bump ArviZ compat * Update elpd standard error accessors * Add docs source to local package * Increment patch version number * Git ignore Manifest.toml * Update src/conversions.jl Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 252f513 commit b76b5f8

File tree

6 files changed

+16
-12
lines changed

6 files changed

+16
-12
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
julia-version: ["1.8", "1", "pre"]
17+
julia-version: ["min", "lts", "1", "pre"]
1818
os: [ubuntu-latest]
1919
include:
2020
- julia-version: "1"

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@
66
/docs/build
77
/test/*.log
88
.DS_Store
9-
.CondaPkg
9+
.CondaPkg
10+
Manifest.toml

Project.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ArviZPythonPlots"
22
uuid = "4a6e88f0-2c8e-11ee-0601-e94153f0eada"
33
authors = ["Seth Axen <[email protected]>"]
4-
version = "0.1.9"
4+
version = "0.1.10"
55

66
[deps]
77
ArviZ = "131c737c-5715-5e2e-ad31-c244f01c1dc7"
@@ -15,18 +15,18 @@ Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
1515
Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"
1616

1717
[compat]
18-
ArviZ = "0.10, 0.11, 0.12"
18+
ArviZ = "0.13"
1919
ArviZExampleData = "0.1.5"
2020
CondaPkg = "0.2"
2121
DimensionalData = "0.23, 0.24, 0.25, 0.26, 0.27, 0.28, 0.29"
22-
Markdown = "1.6"
22+
Markdown = "1"
2323
OrderedCollections = "1"
2424
PythonCall = "0.9"
2525
PythonPlot = "1"
26-
Random = "1.6"
26+
Random = "1"
2727
Reexport = "1"
2828
Tables = "1"
29-
julia = "1.8"
29+
julia = "1.10"
3030

3131
[extras]
3232
ArviZExampleData = "2f96bb34-afd9-46ae-bcd0-9b2d4372fe3c"

docs/Project.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
77
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
88
PythonCall = "6099a3de-0909-46bc-b1f4-468b9a2dfc0d"
99

10+
[sources]
11+
ArviZPythonPlots = {path = ".."}
12+
1013
[compat]
1114
ArviZExampleData = "0.1.5"
1215
Distributions = "0.25"

src/conversions.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ function PythonCall.Py(d::PSISLOOResult)
66
pyds = PythonCall.Py(ds)
77
entries = (
88
elpd_loo=estimates.elpd,
9-
se=estimates.elpd_mcse,
9+
se=estimates.se_elpd,
1010
p_loo=estimates.p,
11-
n_samples=psis_result.nchains * psis_result.ndraws,
11+
n_samples=(psis_result.nchains * psis_result.ndraws),
1212
n_data_points=psis_result.nparams,
1313
warning=false,
1414
loo_i=pyds.loo_i,
@@ -27,7 +27,7 @@ function PythonCall.Py(d::WAICResult)
2727
pyds = PythonCall.Py(ds)
2828
entries = (
2929
elpd_waic=estimates.elpd,
30-
se=estimates.elpd_mcse,
30+
se=estimates.se_elpd,
3131
p_waic=estimates.p,
3232
n_samples="unknown",
3333
n_data_points=length(pointwise.elpd),
@@ -47,7 +47,7 @@ end
4747

4848
function PythonCall.Py(mc::ModelComparisonResult)
4949
table = Tables.columntable(mc)
50-
se_pairs = (:elpd_mcse => :se, :elpd_diff_mcse => :dse)
50+
se_pairs = (:se_elpd => :se, :se_elpd_diff => :dse)
5151
est_pairs = if eltype(mc.elpd_result) <: PSISLOOResult
5252
(:elpd => :elpd_loo, :p => :p_loo)
5353
elseif eltype(mc.elpd_result) <: WAICResult

test/test_plots.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ using Test
108108
plotclose()
109109
end
110110

111-
VERSION v"1.8" && @testset "plot_kde" begin
111+
@testset "plot_kde" begin
112112
plot_kde(arr1)
113113
plotclose()
114114

0 commit comments

Comments
 (0)