Skip to content
New issue

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

@require_declaration docs #1129

Merged
merged 8 commits into from
Nov 20, 2024
Merged

@require_declaration docs #1129

merged 8 commits into from
Nov 20, 2024

Conversation

vyudu
Copy link
Collaborator

@vyudu vyudu commented Nov 20, 2024

Some starting docs for it. Might be a better spot than where I put it (end of the "Explicit specification of network species and parameters" heading)

docs/src/model_creation/dsl_advanced.md Outdated Show resolved Hide resolved
Comment on lines 278 to 284
```@example dsl_advanced_no_infer
using Catalyst
# The following case will throw an UndeclaredSymbolicError.
rn = @reaction_network begin
@require_declaration
(k1, k2), A <--> B
end
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To keep Documenter.jl from failing the build you probably need to catch the error here. (Otherwise just don't make this dynamic and manually paste in the output.)

@isaacsas isaacsas merged commit ef6ef28 into SciML:master Nov 20, 2024
13 checks passed
@isaacsas
Copy link
Member

This is already merged but feel free to follow up and tweak.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants