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
88babb43
Unverified
Commit
88babb43
authored
3 years ago
by
cylon-x
Committed by
St. Elmo
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
automatic formatting changes
parent
ce2afdd3
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/analysis/sampling/warmup.jl
+1
-1
1 addition, 1 deletion
src/analysis/sampling/warmup.jl
test/analysis/sampling/hit_and_run.jl
+1
-1
1 addition, 1 deletion
test/analysis/sampling/hit_and_run.jl
test/analysis/sampling/warmup.jl
+4
-4
4 additions, 4 deletions
test/analysis/sampling/warmup.jl
with
6 additions
and
6 deletions
src/analysis/sampling/warmup.jl
+
1
−
1
View file @
88babb43
...
...
@@ -29,7 +29,7 @@ function warmup(
# load on all workers
map
(
fetch
,
save_at
.
(
workerids
,
:
cobrexa_sampling_warmup_optmodel
,
Ref
(
save_model
)))
# generate warm up points, like FVA
ret
=
m
->
value
.
(
m
[
:
x
])
# get all the fluxes, not just max/min like FVA
fluxes
=
dpmap
(
...
...
This diff is collapsed.
Click to expand it.
test/analysis/sampling/hit_and_run.jl
+
1
−
1
View file @
88babb43
...
...
@@ -12,7 +12,7 @@
nps
=
4
-
nprocs
()
# load extra processes, have at least 4 available
if
1
<=
nps
<=
3
if
1
<=
nps
<=
3
addprocs
(
nps
)
end
@everywhere
using
COBREXA
,
Tulip
...
...
This diff is collapsed.
Click to expand it.
test/analysis/sampling/warmup.jl
+
4
−
4
View file @
88babb43
...
...
@@ -11,7 +11,7 @@
nps
=
4
-
nprocs
()
# load extra processes, have at least 4 available
if
1
<=
nps
<=
3
if
1
<=
nps
<=
3
addprocs
(
nps
)
end
@everywhere
using
COBREXA
,
Tulip
...
...
@@ -27,10 +27,10 @@
ind
=
first
(
indexin
([
"EX_glc__D_e"
],
reactions
(
model
)))
@test
size
(
ws
)
==
(
95
,
2
)
@test
size
(
ws
[
1
,
1
])
==
(
95
,)
@test
size
(
ws
[
1
,
1
])
==
(
95
,)
@test
lbs
[
ind
]
≈
-
4
@test
ubs
[
ind
]
≈
4
# Parallel test
wsparallel
,
lbsparallel
,
ubsparallel
=
warmup
(
model
,
...
...
@@ -42,7 +42,7 @@
ind
=
first
(
indexin
([
"EX_glc__D_e"
],
reactions
(
model
)))
@test
size
(
wsparallel
)
==
(
95
,
2
)
@test
size
(
wsparallel
[
1
,
1
])
==
(
95
,)
@test
size
(
wsparallel
[
1
,
1
])
==
(
95
,)
@test
lbsparallel
[
ind
]
≈
-
4
@test
ubsparallel
[
ind
]
≈
4
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