Skip to content

Commit

Permalink
Merge pull request #100 from xlxs4/events-warning-fix
Browse files Browse the repository at this point in the history
Only warn for events if model has events
  • Loading branch information
paulflang committed Dec 11, 2022
2 parents bd5974b + e797116 commit 9499c47
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "SBMLToolkit"
uuid = "86080e66-c8ac-44c2-a1a0-9adaadfe4a4e"
authors = ["paulflang", "anandijain"]
version = "0.1.18"
version = "0.1.19"

[deps]
Catalyst = "479239e8-5488-4da2-87a7-35f2df7eef83"
Expand Down
3 changes: 2 additions & 1 deletion src/events.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ function get_events(model) # Todo: implement up or downpass and parameters
end
push!(mtk_evs, trig => mtk_evas)
end
@warn "SBMLToolkit currently fires events regardless of uppass or downpass trigger."
!isempty(evs) &&
@warn "SBMLToolkit currently fires events regardless of uppass or downpass trigger."
isempty(mtk_evs) ? nothing : mtk_evs
end

0 comments on commit 9499c47

Please sign in to comment.