Skip to content

Commit 567e2a8

Browse files
committed
format
1 parent 5f9592f commit 567e2a8

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/sampler.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ function sample(
117117
drop_warmup=false,
118118
verbose::Bool=true,
119119
progress::Bool=false,
120-
(pm_next!)::Function=(pm_next!),
120+
(pm_next!)::Function=pm_next!,
121121
)
122122
return sample(
123123
Random.default_rng(),
@@ -130,7 +130,7 @@ function sample(
130130
drop_warmup=drop_warmup,
131131
verbose=verbose,
132132
progress=progress,
133-
(pm_next!)=(pm_next!),
133+
(pm_next!)=pm_next!,
134134
)
135135
end
136136

@@ -168,7 +168,7 @@ function sample(
168168
drop_warmup=false,
169169
verbose::Bool=true,
170170
progress::Bool=false,
171-
(pm_next!)::Function=(pm_next!),
171+
(pm_next!)::Function=pm_next!,
172172
) where {T<:AbstractVecOrMat{<:AbstractFloat}}
173173
@assert !(drop_warmup && (adaptor isa Adaptation.NoAdaptation)) "Cannot drop warmup samples if there is no adaptation phase."
174174
# Prepare containers to store sampling results

src/trajectory.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,8 @@ $(TYPEDEF)
141141
Slice sampler for the starting single leaf tree.
142142
Slice variable is initialized.
143143
"""
144-
function SliceTS(rng::AbstractRNG, z0::PhasePoint)
145-
return SliceTS(z0, neg_energy(z0) - Random.randexp(rng), 1)
146-
end
144+
SliceTS(rng::AbstractRNG, z0::PhasePoint) =
145+
SliceTS(z0, neg_energy(z0) - Random.randexp(rng), 1)
147146

148147
"""
149148
$(TYPEDEF)

0 commit comments

Comments
 (0)