Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
COBREXA.jl
Manage
Activity
Members
Plan
External wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LCSB-BioCore
COBREXA.jl
Commits
f98dda12
Unverified
Commit
f98dda12
authored
3 years ago
by
St. Elmo
Browse files
Options
Downloads
Patches
Plain Diff
remove logger
parent
363acb5b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/base/logging/log.jl
+0
-1
0 additions, 1 deletion
src/base/logging/log.jl
src/base/utils/Reaction.jl
+1
-4
1 addition, 4 deletions
src/base/utils/Reaction.jl
with
1 addition
and
5 deletions
src/base/logging/log.jl
+
0
−
1
View file @
f98dda12
...
...
@@ -56,4 +56,3 @@ end
@_make_logging_tag
models
"model-related messages"
@_make_logging_tag
io
"messages and warnings from model input/output"
@_make_logging_tag
perf
"performance-related tracing information"
log_models
(
true
)
This diff is collapsed.
Click to expand it.
src/base/utils/Reaction.jl
+
1
−
4
View file @
f98dda12
...
...
@@ -61,10 +61,7 @@ function is_mass_balanced(model::StandardModel, rxn::Reaction)
atom_balances
=
Dict
{
String
,
Float64
}()
# float here because stoichiometry is not Int
for
(
met
,
stoich
)
in
rxn
.
metabolites
atoms
=
metabolite_formula
(
model
,
met
)
if
isnothing
(
atoms
)
# ignore blanks
@_models_log
@warn
"
$
met has no atoms associated with it."
continue
end
isnothing
(
atoms
)
&&
throw
(
ErrorException
(
"Metabolite
$
met does not have a formula assigned to it."
))
for
(
k
,
v
)
in
atoms
atom_balances
[
k
]
=
get
(
atom_balances
,
k
,
0
)
+
v
*
stoich
end
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment