Skip to content

Commit

Permalink
change to u0
Browse files Browse the repository at this point in the history
  • Loading branch information
TorkelE committed Oct 7, 2023
1 parent 6d8397d commit 5d151b6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Here `BNGNetwork` is a type specifying the file format that is being loaded.
`prnbng` is a `ParsedReactionNetwork` structure with the following fields:

- `rn`, a Catalyst `ReactionSystem`
- `u₀`, a `Dict` mapping initial condition symbolic variables to numeric values
- `u0`, a `Dict` mapping initial condition symbolic variables to numeric values
and/or symbolic expressions.
- `p`, a `Dict` mapping parameter symbolic variables to numeric values and/or
symbolic expressions.
Expand Down Expand Up @@ -221,4 +221,4 @@ initialconditionf = "PATH/TO/FILE"
networkf = "PATH/TO/FILE"
rssarn = loadrxnetwork(RSSANetwork(), "RSSARxSys", initialconditionf, networkf)
```
Here `RSSANetwork` specifies the type of the file to parse, and `RSSARxSys` gives the type of the generated `reaction_network`. `rssarn` is again a `ParsedReactionNetwork`, but only the `rn` and `u₀` fields will now be relevant (the remaining fields will be set to `nothing`). -->
Here `RSSANetwork` specifies the type of the file to parse, and `RSSARxSys` gives the type of the generated `reaction_network`. `rssarn` is again a `ParsedReactionNetwork`, but only the `rn` and `u0` fields will now be relevant (the remaining fields will be set to `nothing`). -->
2 changes: 1 addition & 1 deletion docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Here `BNGNetwork` is a type specifying the file format that is being loaded.
`prnbng` is a `ParsedReactionNetwork` structure with the following fields:

- `rn`, a Catalyst `ReactionSystem`
- `u₀`, a `Dict` mapping initial condition symbolic variables to numeric values
- `u0`, a `Dict` mapping initial condition symbolic variables to numeric values
and/or symbolic expressions.
- `p`, a `Dict` mapping parameter symbolic variables to numeric values and/or
symbolic expressions.
Expand Down
6 changes: 3 additions & 3 deletions src/ReactionNetworkImporters.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ struct ParsedReactionNetwork
rn::ReactionSystem

"Dict mapping initial condition symbolic variables to values."
u₀::Any
u0::Any

"Dict mapping parameter symbolic variables to values."
p::Any
Expand All @@ -35,9 +35,9 @@ struct ParsedReactionNetwork
"Dict from group name (as string) to corresponding symbolic variable"
groupstosyms::Any
end
function ParsedReactionNetwork(rn::ReactionSystem; u₀ = nothing, p = nothing,
function ParsedReactionNetwork(rn::ReactionSystem; u0 = nothing, p = nothing,

Check warning on line 38 in src/ReactionNetworkImporters.jl

View check run for this annotation

Codecov / codecov/patch

src/ReactionNetworkImporters.jl#L38

Added line #L38 was not covered by tests
varstonames = nothing, groupstosyms = nothing)
ParsedReactionNetwork(rn, u₀, p, varstonames, groupstosyms)
ParsedReactionNetwork(rn, u0, p, varstonames, groupstosyms)

Check warning on line 40 in src/ReactionNetworkImporters.jl

View check run for this annotation

Codecov / codecov/patch

src/ReactionNetworkImporters.jl#L40

Added line #L40 was not covered by tests
end

export BNGNetwork, MatrixNetwork, ParsedReactionNetwork, ComplexMatrixNetwork
Expand Down

0 comments on commit 5d151b6

Please sign in to comment.