Skip to content

Commit 37481ac

Browse files
authored
removing last HMCKernel legacy function (#339)
* removing last HMCKernel legacy function * AbstractTrajectory * Revert "AbstractTrajectory" This reverts commit 103fded.
1 parent bb4b534 commit 37481ac

File tree

2 files changed

+2
-17
lines changed

2 files changed

+2
-17
lines changed

src/AdvancedHMC.jl

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -66,24 +66,9 @@ export Trajectory,
6666

6767
# Useful defaults
6868

69-
# Deprecations for trajectory.jl
70-
71-
abstract type AbstractTrajectory end
72-
73-
struct StaticTrajectory{TS} end
74-
@deprecate StaticTrajectory{TS}(int::AbstractIntegrator, L) where {TS} HMCKernel(
75-
Trajectory{TS}(int, FixedNSteps(L)),
76-
)
77-
@deprecate StaticTrajectory(int::AbstractIntegrator, L) HMCKernel(
78-
Trajectory{EndPointTS}(int, FixedNSteps(L)),
79-
)
80-
@deprecate StaticTrajectory::AbstractScalarOrVec{<:Real}, L) HMCKernel(
81-
Trajectory{EndPointTS}(Leapfrog(ϵ), FixedNSteps(L)),
82-
)
83-
8469
@deprecate find_good_eps find_good_stepsize
8570

86-
export StaticTrajectory, find_good_eps
71+
export find_good_eps
8772

8873
include("adaptation/Adaptation.jl")
8974
using .Adaptation

test/sampler-vec.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ include("common.jl")
8383

8484
# Simple time benchmark
8585
let metricT = UnitEuclideanMetric
86-
κ = StaticTrajectory(lf, n_steps)
86+
κ = HMCKernel(Trajectory{EndPointTS}(lf, FixedNSteps(n_steps)))
8787

8888
time_mat = Vector{Float64}(undef, n_chains_max)
8989
for (i, n_chains) in enumerate(n_chains_list)

0 commit comments

Comments
 (0)