Skip to content

Commit 79ee487

Browse files
committed
Remove imports and exports
Not used in extensions
1 parent 3e5b48f commit 79ee487

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

ext/InferenceObjectsPosteriorStatsExt/InferenceObjectsPosteriorStatsExt.jl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,8 @@ using InferenceObjects: InferenceObjects
66
using PosteriorStats: PosteriorStats
77
using StatsBase: StatsBase
88

9-
import PosteriorStats: eti, hdi, loo, loo_pit, r2_score, summarize, waic
109
import StatsBase: summarystats
1110

12-
export eti, hdi, loo, loo_pit, r2_score, summarize, waic, summarystats
13-
1411
maplayers = isdefined(DimensionalData, :maplayers) ? DimensionalData.maplayers : map
1512

1613
include("utils.jl")

ext/InferenceObjectsPosteriorStatsExt/ci.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11

22
for (ci_fun, ci_desc) in
33
(:eti => "equal-tailed interval (ETI)", :hdi => "highest density interval (HDI)")
4+
ci_name = string(ci_fun)
45
@eval begin
5-
# this pattern ensures that the type is completely specified at compile time
66
@doc """
7-
$($ci_fun)(data::InferenceData; kwargs...) -> Dataset
8-
$($ci_fun)(data::Dataset; kwargs...) -> Dataset
7+
$($ci_name)(data::InferenceData; kwargs...) -> Dataset
8+
$($ci_name)(data::Dataset; kwargs...) -> Dataset
99
1010
Calculate the $($ci_desc) for each parameter in the data.
1111
1212
For more details and a description of the `kwargs`, see
13-
[`PosteriorStats.$($ci_fun)`](@extref).
13+
[`PosteriorStats.$($ci_name)`](@extref).
1414
"""
1515
function PosteriorStats.$(ci_fun)(data::InferenceObjects.InferenceData; kwargs...)
1616
return PosteriorStats.$(ci_fun)(data.posterior; kwargs...)

0 commit comments

Comments
 (0)