Skip to content

Commit

Permalink
Hotfix: remove prefix_submodel doctest (#515)
Browse files Browse the repository at this point in the history
* swap prefix_submodel to an example rather than doctest

* Update EpiAware/src/EpiAwareUtils/prefix_submodel.jl

---------

Co-authored-by: Sam Abbott <[email protected]>
  • Loading branch information
SamuelBrand1 and seabbs authored Oct 24, 2024
1 parent d1c342f commit bf3ece9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions EpiAware/src/EpiAwareUtils/prefix_submodel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,9 @@ Generate a submodel with an optional prefix. A lightweight wrapper around the `@
# Examples
```jldoctest
```@example
using EpiAware, DynamicPPL
submodel = prefix_submodel(FixedIntercept(0.1), generate_latent, string(1), 2)
submodel
# output
Model{typeof(prefix_submodel), (:model, :fn, :prefix, Symbol(\"#splat#kwargs\")), (), (), Tuple{FixedIntercept{Float64}, typeof(generate_latent), String, Tuple{Int64}}, Tuple{}, DefaultContext}(EpiAware.EpiAwareUtils.prefix_submodel, (model = FixedIntercept{Float64}(0.1), fn = EpiAware.EpiAwareBase.generate_latent, prefix = \"1\", var\"#splat#kwargs\" = (2,)), NamedTuple(), DefaultContext())
```
We can now draw a sample from the submodel.
Expand Down

0 comments on commit bf3ece9

Please sign in to comment.