We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This simple SEIR example gives a wiring from I to R in the UWD (correct) but from E to R in the labelled Petri net.
using AlgebraicPetri,AlgebraicPetri.TypedPetri using Catlab, Catlab.CategoricalAlgebra, Catlab.Programs using Catlab.WiringDiagrams, Catlab.Graphics using AlgebraicDynamics.UWDDynam epi_transitions = LabelledPetriNet( [:Pop], :infection=>((:Pop, :Pop)=>(:Pop, :Pop)), :progression=>(:Pop=>:Pop), :recovery=>(:Pop=>:Pop) ) seir_uwd = @relation () where (S::Pop, E::Pop, I::Pop, R::Pop) begin infection(S, I, E, I) progression(E, I) recovery(I, R) end to_graphviz(seir_uwd, box_labels=:name, junction_labels=:variable) seir_acst = oapply_typed(epi_transitions, seir_uwd, [:β, :δ, :γ]) seir_lpn = dom(seir_acst) Graph(seir_lpn)
@jpfairbanks found that changing the order to (S::Pop, I::Pop, E::Pop, R::Pop) in the @relation fixed this.
(S::Pop, I::Pop, E::Pop, R::Pop)
@relation
The text was updated successfully, but these errors were encountered:
oapply_typed
Thanks @epatters @mehalter! QQ: after I updated, Graph no longer works...has there been an API change?
Graph
Sorry, something went wrong.
Sure! This was a breaking change in the latest major release of AlgPetri for consistency with Catlab. Use to_graphviz instead.
to_graphviz
(The reason for this change is that Graph is the name of the basic graph type exported by Catlab.Graphs.)
Catlab.Graphs
Successfully merging a pull request may close this issue.
This simple SEIR example gives a wiring from I to R in the UWD (correct) but from E to R in the labelled Petri net.
@jpfairbanks found that changing the order to
(S::Pop, I::Pop, E::Pop, R::Pop)
in the@relation
fixed this.The text was updated successfully, but these errors were encountered: