Skip to content

Commit

Permalink
commit warnings from doctest fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelBrand1 committed Jan 18, 2025
1 parent 1c53311 commit 74188c4
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 0 deletions.
12 changes: 12 additions & 0 deletions EpiAware/src/EpiInfModels/ODEProcess.jl
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,12 @@ gen_mdl = fit_ode_model(missing)
θ = rand(gen_mdl)
test_data = (gen_mdl | θ)()
nothing
┌ Warning: `@submodel model` and `@submodel prefix=... model` are deprecated; see `to_submodel` for the up-to-date syntax.
│ caller = ip:0x0
└ @ Core :-1
┌ Warning: `@submodel model` and `@submodel prefix=... model` are deprecated; see `to_submodel` for the up-to-date syntax.
│ caller = ip:0x0
└ @ Core :-1
# output
Expand Down Expand Up @@ -229,6 +235,9 @@ expgrowth_model = ODEProcess(
)
infs = generate_latent_infs(expgrowth_model, nothing)()
nothing
┌ Warning: `@submodel model` and `@submodel prefix=... model` are deprecated; see `to_submodel` for the up-to-date syntax.
│ caller = ip:0x0
└ @ Core :-1
# output
Expand Down Expand Up @@ -285,6 +294,9 @@ sir_process = ODEProcess(
generated_It = generate_latent_infs(sir_process, nothing)()
nothing
┌ Warning: `@submodel model` and `@submodel prefix=... model` are deprecated; see `to_submodel` for the up-to-date syntax.
│ caller = ip:0x0
└ @ Core :-1
# output
Expand Down
3 changes: 3 additions & 0 deletions EpiAware/src/EpiLatentModels/combinations/arima.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ ARIMA = arima()
arima_model = generate_latent(ARIMA, 10)
arima_model()
nothing
┌ Warning: `@submodel model` and `@submodel prefix=... model` are deprecated; see `to_submodel` for the up-to-date syntax.
│ caller = ip:0x0
└ @ Core :-1
# output
```
Expand Down
3 changes: 3 additions & 0 deletions EpiAware/src/EpiLatentModels/combinations/arma.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ ARMA = arma(;
arma_model = generate_latent(ARMA, 10)
arma_model()
nothing
┌ Warning: `@submodel model` and `@submodel prefix=... model` are deprecated; see `to_submodel` for the up-to-date syntax.
│ caller = ip:0x0
└ @ Core :-1
# output
```
"""
Expand Down
6 changes: 6 additions & 0 deletions EpiAware/src/EpiLatentModels/models/AR.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,18 @@ nothing
mdl = generate_latent(ar, 10)
mdl()
nothing
┌ Warning: `@submodel model` and `@submodel prefix=... model` are deprecated; see `to_submodel` for the up-to-date syntax.
│ caller = ip:0x0
└ @ Core :-1
# output
```
```jldoctest AutoRegressive; output = false
rand(mdl)
nothing
┌ Warning: `@submodel model` and `@submodel prefix=... model` are deprecated; see `to_submodel` for the up-to-date syntax.
│ caller = ip:0x0
└ @ Core :-1
# output
```
"
Expand Down
6 changes: 6 additions & 0 deletions EpiAware/src/EpiLatentModels/models/HierarchicalNormal.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ mdl()
rand(mdl)
nothing
┌ Warning: `@submodel model` and `@submodel prefix=... model` are deprecated; see `to_submodel` for the up-to-date syntax.
│ caller = ip:0x0
└ @ Core :-1
┌ Warning: `@submodel model` and `@submodel prefix=... model` are deprecated; see `to_submodel` for the up-to-date syntax.
│ caller = ip:0x0
└ @ Core :-1
# output
```
"
Expand Down
6 changes: 6 additions & 0 deletions EpiAware/src/EpiLatentModels/models/RandomWalk.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,18 @@ nothing
mdl = generate_latent(rw, 10)
mdl()
nothing
┌ Warning: `@submodel model` and `@submodel prefix=... model` are deprecated; see `to_submodel` for the up-to-date syntax.
│ caller = ip:0x0
└ @ Core :-1
# output
```
```jldoctest RandomWalk; output = false
rand(mdl)
nothing
┌ Warning: `@submodel model` and `@submodel prefix=... model` are deprecated; see `to_submodel` for the up-to-date syntax.
│ caller = ip:0x0
└ @ Core :-1
# output
```
Expand Down

0 comments on commit 74188c4

Please sign in to comment.