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
3988d0f4
Commit
3988d0f4
authored
Jul 08, 2020
by
Mathieu Hemery
Browse files
Add a test to avoid working on empty model
parent
94a83157
Changes
2
Hide whitespace changes
Inline
Side-by-side
biocham_jupyter/guinbextension/src/config/workflows/commands.py
View file @
3988d0f4
...
...
@@ -30,6 +30,7 @@ commands = [
"check_conservations"
,
"check_ctl"
,
"check_ltl"
,
"check_model"
,
"check_multistability"
,
"check_oscillations"
,
"cleanup_ctl"
,
...
...
models.pl
View file @
3988d0f4
...
...
@@ -315,23 +315,29 @@ check_model :-
identifier_kind
(
ModelId
,
Molecule
,
object
),
List_Molecule
),
reactions_with_species
(
List_Molecule
,
List_Reaction
),
(
forall
(
member
(
Reaction
,
List_Reaction
),
test_wellformed
(
List_Molecule
,
Reaction
)
)
->
format
(
"The model is wellformed.~n"
,
[])
;
format
(
"The model is NOT wellformed.~n"
,
[])
),
(
maplist
(
test_all_reactions
(
catalyst
,
test_strictness
),
List_Molecule
)
List_Molecule
=
[]
->
format
(
"The
model is strict.
~n"
,
[])
format
(
"The
re is currently no model to work on!
~n"
,
[])
;
format
(
"The model is NOT strict.~n"
,
[])
reactions_with_species
(
List_Molecule
,
List_Reaction
),
(
forall
(
member
(
Reaction
,
List_Reaction
),
test_wellformed
(
List_Molecule
,
Reaction
)
)
->
format
(
"The model is wellformed.~n"
,
[])
;
format
(
"The model is NOT wellformed.~n"
,
[])
),
(
maplist
(
test_all_reactions
(
catalyst
,
test_strictness
),
List_Molecule
)
->
format
(
"The model is strict.~n"
,
[])
;
format
(
"The model is NOT strict.~n"
,
[])
)
).
:-
devdoc
(
'\\section{Public API}'
).
...
...
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