Skip to content

Commit 629dd30

Browse files
committed
fixes
1 parent c4c0cf2 commit 629dd30

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

src/Catalyst.jl

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,19 +87,16 @@ const forbidden_variables_error = let
8787
fvars
8888
end
8989

90-
# Union type for `Reaction`s and `Eqiation`s.
91-
const CatalystEqType = Union{Reaction, Equation}
92-
9390
### Package Main ###
9491

9592
# The `Reaction` structure and its functions.
96-
include("reaction_structure.jl.jl")
93+
include("reaction_structure.jl")
9794
export isspecies
9895
export Reaction
9996
export get_noise_scaling, has_noise_scaling
10097

10198
# The `ReactionSystem` structure and its functions.
102-
include("reactionsystem_structure.jl.jl")
99+
include("reactionsystem_structure.jl")
103100
export ReactionSystem, isspatial
104101
export species, nonspecies, reactionparams, reactions, speciesmap, paramsmap
105102
export numspecies, numreactions, numreactionparams, setdefaults!
@@ -113,7 +110,7 @@ export set_default_noise_scaling
113110
export params, numparams
114111

115112
# Conversions of the `ReactionSystem` structure.
116-
include("reactionsystem_conversions.jl.jl")
113+
include("reactionsystem_conversions.jl")
117114
export ODEProblem,
118115
SDEProblem, JumpProblem, NonlinearProblem, DiscreteProblem,
119116
SteadyStateProblem
@@ -126,7 +123,7 @@ include("dsl.jl")
126123
export @reaction_network, @network_component, @reaction, @species
127124

128125
# Network analysis functionality.
129-
include("network_analysis.jl.jl")
126+
include("network_analysis.jl")
130127
export reactioncomplexmap, reactioncomplexes, incidencemat
131128
export complexstoichmat
132129
export complexoutgoingmat, incidencematgraph, linkageclasses, deficiency, subnetworks

src/reaction_structure.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,8 @@ end
237237
# Get the net stoichiometries' type.
238238
netstoich_stoichtype(::Vector{Pair{S, T}}) where {S, T} = T
239239

240+
# Union type for `Reaction`s and `Equation`s.
241+
const CatalystEqType = Union{Reaction, Equation}
240242

241243
### Base Functions ###
242244

src/reactionsystem_structure.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1431,4 +1431,4 @@ function validate(rs::ReactionSystem, info::String = "")
14311431
end
14321432

14331433
# Checks if a unit consist of exponents with base 1 (and is this unitless).
1434-
(u) = istree(u) && (operation(u) == ^) && (arguments(u)[1] == 1)
1434+
unitless_exp(u) = istree(u) && (operation(u) == ^) && (arguments(u)[1] == 1)

0 commit comments

Comments
 (0)