Skip to content

Commit 5c7d118

Browse files
github-actions[bot]CompatHelper Juliatheogf
authored
CompatHelper: bump compat for Turing to 0.20, (keep existing compat) (#45)
* CompatHelper: bump compat for Turing to 0.20, (keep existing compat) * Solved most issues Co-authored-by: CompatHelper Julia <[email protected]> Co-authored-by: Theo Galy-Fajou <[email protected]>
1 parent 7958678 commit 5c7d118

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

.github/workflows/CompatHelper.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ jobs:
1313
env:
1414
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1515
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}
16-
run: julia -e 'using CompatHelper; CompatHelper.main(; bump_version=true)'
16+
run: julia -e 'using CompatHelper; CompatHelper.main(; bump_version=true, subdirs=["test", "docs"])'

Project.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "Turkie"
22
uuid = "8156cc02-0533-41cd-9345-13411ebe105f"
33
authors = ["Theo Galy-Fajou <[email protected]> and contributors"]
4-
version = "0.1.10"
4+
version = "0.1.11"
55

66
[deps]
77
ColorSchemes = "35d6a980-a343-548e-a6ea-1d62b119f2f4"
@@ -17,7 +17,7 @@ ColorSchemes = "3"
1717
Colors = "0.12"
1818
KernelDensity = "0.6"
1919
MCMCChains = "4, 5"
20-
Makie = "0.15"
20+
Makie = "0.15, 0.16"
2121
OnlineStats = "1.5"
22-
Turing = "0.15, 0.16, 0.17, 0.18, 0.19"
23-
julia = "1.6"
22+
Turing = "0.20"
23+
julia = "1.6"

src/Turkie.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module Turkie
22

33
using Makie: Makie, Figure, Axis, Point2f0
44
using Makie: barplot!, lines!, scatter! # Plotting tools
5-
using Makie: Observable, Node, lift, on # Observable tools
5+
using Makie: Observable, lift, on # Observable tools
66
using Makie: recordframe! # Recording tools
77
using Makie.MakieLayout # Layouting tool
88
using Colors, ColorSchemes # Colors tools

src/live_sampling/online_stats_plots.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function onlineplot!(axis, stat::KHist, stats, iter, data, iterations, i, j)
7272
on(iter) do _
7373
stat[] = fit!(stat[], last(value(data[])))
7474
end
75-
hist_vals = Node(Point2f0.(collect(range(0f0, 1f0, length=nbins)), zeros(Float32, nbins)))
75+
hist_vals = Observable(Point2f0.(collect(range(0f0, 1f0, length=nbins)), zeros(Float32, nbins)))
7676
push!(stats, stat)
7777
on(stat) do h
7878
edges, weights = OnlineStats.xy(h)

src/live_sampling/turkie_callback.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ function TurkieCallback(vars::NamedTuple, params::Dict)
5555
get!(params, :refresh, false)
5656
params[:t0] = 0
5757
iter = Observable(0)
58-
data = Dict{Symbol, Observable{MovingWindow}}(:iter => Node(MovingWindow(window, Int)))
58+
data = Dict{Symbol, Observable{MovingWindow}}(:iter => Observable(MovingWindow(window, Int)))
5959
axis_dict = Dict()
6060
stats_dict = Dict()
6161
for (i, variable) in enumerate(keys(vars))
6262
plots = vars[variable]
63-
data[variable] = Node(MovingWindow(window, Float32))
63+
data[variable] = Observable(MovingWindow(window, Float32))
6464
axis_dict[(variable, :varname)] = fig[i, 1, Left()] = Label(fig, string(variable), textsize = 30)
6565
axis_dict[(variable, :varname)].padding = (0, 60, 0, 0)
6666
onlineplot!(fig, axis_dict, plots, stats_dict, iter, data, variable, i)

test/Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ Turing = "fce5fe82-541a-59a6-adf8-730c64b5f9a0"
99
CairoMakie = "0.6"
1010
ColorSchemes = "3"
1111
OnlineStats = "1"
12-
Turing = "0.15, 0.16, 0.17, 0.18, 0.19"
12+
Turing = "0.20"

0 commit comments

Comments
 (0)