Skip to content
Snippets Groups Projects
Unverified Commit f98dda12 authored by St. Elmo's avatar St. Elmo
Browse files

remove logger

parent 363acb5b
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment