Skip to content

Commit 91dfcfc

Browse files
authored
Merge pull request #1191 from akaviaLab/refactor/tests
Refactor/tests
2 parents b628572 + e13e8df commit 91dfcfc

File tree

138 files changed

+19186
-2270
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

138 files changed

+19186
-2270
lines changed

benchmarks/cobra-cameo-merge-benchmarks-before-merge.ipynb

+97-98
Large diffs are not rendered by default.

benchmarks/cobra-cameo-merge-benchmarks.ipynb

+137-254
Large diffs are not rendered by default.

benchmarks/geometric_fba.ipynb

+23-23
Original file line numberDiff line numberDiff line change
@@ -22,26 +22,9 @@
2222
"cell_type": "code",
2323
"execution_count": 3,
2424
"metadata": {},
25-
"outputs": [
26-
{
27-
"name": "stderr",
28-
"output_type": "stream",
29-
"text": [
30-
"DEBUG:optlang.util:Gurobi python bindings found at /home/moritz/.virtualenvs/cobra/lib/python3.5/site-packages/gurobipy\n",
31-
"DEBUG:optlang.util:GLPK python bindings found at /home/moritz/.virtualenvs/cobra/lib/python3.5/site-packages/swiglpk\n",
32-
"DEBUG:optlang.util:Mosek python bindings not available.\n",
33-
"DEBUG:optlang.util:CPLEX python bindings found at /home/moritz/.virtualenvs/cobra/lib/python3.5/site-packages/cplex\n",
34-
"DEBUG:optlang.util:Scipy solver not available\n",
35-
"DEBUG:pip._internal.utils.misc:lzma module is not available\n",
36-
"DEBUG:pip._internal.vcs:Registered VCS backend: git\n",
37-
"DEBUG:pip._internal.vcs:Registered VCS backend: hg\n",
38-
"DEBUG:pip._internal.vcs:Registered VCS backend: svn\n",
39-
"DEBUG:pip._internal.vcs:Registered VCS backend: bzr\n"
40-
]
41-
}
42-
],
25+
"outputs": [],
4326
"source": [
44-
"from cobra.test import create_test_model"
27+
"from cobra.io import load_model"
4528
]
4629
},
4730
{
@@ -57,9 +40,26 @@
5740
"cell_type": "code",
5841
"execution_count": 5,
5942
"metadata": {},
60-
"outputs": [],
43+
"outputs": [
44+
{
45+
"name": "stderr",
46+
"output_type": "stream",
47+
"text": [
48+
"INFO:cobra.core.model:The current solver interface glpk doesn't support setting the optimality tolerance.\n"
49+
]
50+
},
51+
{
52+
"name": "stdout",
53+
"output_type": "stream",
54+
"text": [
55+
"Scaling...\n",
56+
" A: min|aij| = 1.000e+00 max|aij| = 1.000e+00 ratio = 1.000e+00\n",
57+
"Problem data seem to be well scaled\n"
58+
]
59+
}
60+
],
6161
"source": [
62-
"model = create_test_model(\"textbook\")"
62+
"model = load_model(\"textbook\")"
6363
]
6464
},
6565
{
@@ -459,7 +459,7 @@
459459
],
460460
"metadata": {
461461
"kernelspec": {
462-
"display_name": "Python 3",
462+
"display_name": "Python 3 (ipykernel)",
463463
"language": "python",
464464
"name": "python3"
465465
},
@@ -473,7 +473,7 @@
473473
"name": "python",
474474
"nbconvert_exporter": "python",
475475
"pygments_lexer": "ipython3",
476-
"version": "3.5.5"
476+
"version": "3.7.1"
477477
}
478478
},
479479
"nbformat": 4,

0 commit comments

Comments
 (0)