Skip to content

Commit c4c0cf2

Browse files
committed
up
1 parent b6d9e71 commit c4c0cf2

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

src/Catalyst.jl

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ end
7171

7272
### Package Constants ###
7373

74+
# Union type of types that can occur in expressions.
75+
const ExprValues = Union{Expr, Symbol, Float64, Int, Bool}
76+
77+
# The symbol used for conserved quantities in conservation law eliminations.
78+
const CONSERVED_CONSTANT_SYMBOL =
79+
7480
# Declares symbols which may neither be used as parameters nor unknowns.
7581
const forbidden_symbols_skip = Set([:ℯ, :pi, , :t, :∅])
7682
const forbidden_symbols_error = union(Set([:im, :nothing, CONSERVED_CONSTANT_SYMBOL]),
@@ -84,9 +90,6 @@ end
8490
# Union type for `Reaction`s and `Eqiation`s.
8591
const CatalystEqType = Union{Reaction, Equation}
8692

87-
# The symbol used for conserved quantities in conservation law eliminations.
88-
const CONSERVED_CONSTANT_SYMBOL =
89-
9093
### Package Main ###
9194

9295
# The `Reaction` structure and its functions.
@@ -117,6 +120,11 @@ export ODEProblem,
117120
export ismassaction, oderatelaw, jumpratelaw
118121
export symmap_to_varmap
119122

123+
# reaction_network macro
124+
include("expression_utils.jl")
125+
include("dsl.jl")
126+
export @reaction_network, @network_component, @reaction, @species
127+
120128
# Network analysis functionality.
121129
include("network_analysis.jl.jl")
122130
export reactioncomplexmap, reactioncomplexes, incidencemat
@@ -125,12 +133,6 @@ export complexoutgoingmat, incidencematgraph, linkageclasses, deficiency, subnet
125133
export linkagedeficiencies, isreversible, isweaklyreversible
126134
export conservationlaws, conservedquantities, conservedequations, conservationlaw_constants
127135

128-
# reaction_network macro
129-
const ExprValues = Union{Expr, Symbol, Float64, Int, Bool}
130-
include("expression_utils.jl")
131-
include("dsl.jl")
132-
export @reaction_network, @network_component, @reaction, @species
133-
134136
# registers CRN specific functions using Symbolics.jl
135137
include("registered_functions.jl")
136138
export mm, mmr, hill, hillr, hillar

0 commit comments

Comments
 (0)