Skip to content

Commit aada0d7

Browse files
authored
Use more lightweight ArrayInterfaceCore, drop Julia < 1.6, and release ESS 1.0.0 (#29)
* Use more lightweight ArrayInterfaceCore * Drop support for Julia < 1.6 and release ESS 1.0.0
1 parent 5663030 commit aada0d7

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
strategy:
2121
matrix:
2222
version:
23-
- '1.3'
23+
- '1.6'
2424
- '1'
2525
- 'nightly'
2626
os:

Project.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
name = "EllipticalSliceSampling"
22
uuid = "cad2338a-1db2-11e9-3401-43bc07c9ede2"
33
authors = ["David Widmann <[email protected]>"]
4-
version = "0.5.0"
4+
version = "1.0.0"
55

66
[deps]
77
AbstractMCMC = "80f14c24-f653-4e6a-9b94-39d6b0f70001"
8-
ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
8+
ArrayInterfaceCore = "30b0a656-2188-435a-8636-2ec0e6a096e2"
99
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
1010
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
1111
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
1212

1313
[compat]
1414
AbstractMCMC = "3.2, 4"
15-
ArrayInterface = "2, 3, 4, 5"
15+
ArrayInterfaceCore = "0.1"
1616
Distributions = "0.22, 0.23, 0.24, 0.25"
17-
julia = "1.3"
17+
julia = "1.6"
1818

1919
[extras]
2020
Distances = "b4f34e82-e78d-54a5-968a-f98e89d6e8f7"

src/EllipticalSliceSampling.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module EllipticalSliceSampling
22

33
using AbstractMCMC: AbstractMCMC
4-
using ArrayInterface: ArrayInterface
4+
using ArrayInterfaceCore: ArrayInterfaceCore
55
using Distributions: Distributions
66

77
using Random: Random

src/abstractmcmc.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ end
1313

1414
function ESSState(sample, loglikelihood)
1515
# create cache since it was not provided (initial sampling step)
16-
cache = ArrayInterface.ismutable(sample) ? similar(sample) : nothing
16+
cache = ArrayInterfaceCore.ismutable(sample) ? similar(sample) : nothing
1717
return ESSState(sample, loglikelihood, cache)
1818
end
1919

@@ -83,7 +83,7 @@ function AbstractMCMC.step(
8383
θ = θmin + rand(rng) * (θmax - θmin)
8484

8585
# recompute the proposal
86-
if ArrayInterface.ismutable(fnext)
86+
if ArrayInterfaceCore.ismutable(fnext)
8787
proposal!(fnext, prior, f, ν, θ)
8888
else
8989
fnext = proposal(prior, f, ν, θ)

0 commit comments

Comments
 (0)