Skip to content

Commit ead85d9

Browse files
committed
move plotting to extension
1 parent e59ddbf commit ead85d9

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

Project.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ Unicode = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5"
4848
StatsPlots = "f3b207a7-027a-5e70-b257-86293d7955fd"
4949
Turing = "fce5fe82-541a-59a6-adf8-730c64b5f9a0"
5050

51+
[extensions]
52+
# name of extension to the left
53+
# extension dependencies required to load the extension to the right
54+
# use a list for multiple extension dependencies
55+
StatsPlotsExt = "StatsPlots"
56+
5157
[compat]
5258
ADTypes = "1"
5359
Accessors = "0.1"

src/plotting.jl renamed to ext/StatsPlotsExt.jl

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1+
module StatsPlotsExt
2+
3+
import MacroModelling
14
import LaTeXStrings
5+
import StatsPlots
6+
27
@stable default_mode = "disable" begin
38
"""
49
```
@@ -1855,4 +1860,6 @@ function plot_conditional_forecast(𝓂::ℳ,
18551860

18561861
end
18571862

1858-
end # dispatch_doctor
1863+
end # dispatch_doctor
1864+
1865+
end # module

src/MacroModelling.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ include("./filter/kalman.jl")
128128
# end # DispatchDoctor
129129

130130
function __init__()
131-
@require StatsPlots = "f3b207a7-027a-5e70-b257-86293d7955fd" include("plotting.jl")
131+
# @require StatsPlots = "f3b207a7-027a-5e70-b257-86293d7955fd" include("plotting.jl")
132132
@require Turing = "fce5fe82-541a-59a6-adf8-730c64b5f9a0" include("priors.jl")
133133
end
134134

0 commit comments

Comments
 (0)