Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
LCSB-BioCore
COBREXA.jl
Commits
53d876e9
Unverified
Commit
53d876e9
authored
Nov 29, 2021
by
St. Elmo
Browse files
more reviews
parent
c791716a
Pipeline
#50156
passed with stages
in 7 minutes and 39 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/reconstruction/StandardModel.jl
View file @
53d876e9
...
...
@@ -249,8 +249,8 @@ function change_objective!(
all
(
!
haskey
(
model
.
reactions
,
rid
)
for
rid
in
rxn_ids
)
&&
throw
(
DomainError
(
rxn_ids
,
"Some reaction ids were not found in model."
))
for
rid
in
reactions
(
model
)
# reset to zero
model
.
reactions
[
rid
]
.
objective_coefficient
=
0.0
for
(
_
,
rxn
)
in
model
.
reactions
# reset to zero
rxn
.
objective_coefficient
=
0.0
end
for
(
k
,
rid
)
in
enumerate
(
rxn_ids
)
model
.
reactions
[
rid
]
.
objective_coefficient
=
weights
[
k
]
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment