Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Lifeware
biocham
Commits
08502566
Commit
08502566
authored
Aug 05, 2020
by
Mathieu Hemery
Browse files
Protect split_bidir. against convoluted parameters
parent
9cad6166
Changes
2
Show whitespace changes
Inline
Side-by-side
model_correction.pl
View file @
08502566
...
...
@@ -69,7 +69,9 @@ split_bidirectional_reaction(Expression for Reactant => Product) :-
(
ode
:
substitute_functions
(
Expression
,
Expr
),
distribute
(
Expr
,
DistExpr
),
DistExpr
=
Up
-
Down
DistExpr
=
Up
-
Down
,
models
:
formal_product
(
P
,
Reactant
=>
Product
),
present_in_kinetics
(
P
,
Down
)
->
delete_reaction
(
Expression
for
Reactant
=>
Product
),
add_reaction
(
Up
for
Reactant
=>
Product
),
...
...
models.pl
View file @
08502566
...
...
@@ -1330,6 +1330,15 @@ formal_reactant(Mol, Reactants => _Products) :- !,
is_present
(
Mol
,
Reactants
).
%! formal_product(+Molecule, +Reaction)
formal_product
(
Mol
,
_Reactants
/
_Inhibtors
=>
Products
)
:-
!,
is_present
(
Mol
,
Products
).
formal_product
(
Mol
,
_Reactants
=>
Products
)
:-
!,
is_present
(
Mol
,
Products
).
%! formal_catalyst(+Molecule, +Reaction)
formal_catalyst
(
Mol
,
Reactants
=>
Products
)
:-
!,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment