Skip to content

Commit f2bbac8

Browse files
committed
wgott fix for added constraints
1 parent 4623597 commit f2bbac8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
2020
Author: Brett G. Olivier
2121
Contact email: [email protected]
22-
Last edit: $Author: bgoli $ ($Id: setup.py 634 2017-11-06 10:25:37Z bgoli $)
22+
Last edit: $Author: bgoli $ ($Id: setup.py 638 2017-12-15 11:38:40Z bgoli $)
2323
2424
"""
2525

@@ -44,7 +44,7 @@
4444

4545
# release
4646
try:
47-
STATUS = 'r'+'$Rev: 634 $'.replace('Rev: ','').replace('$','').strip()
47+
STATUS = 'r'+'$Rev: 638 $'.replace('Rev: ','').replace('$','').strip()
4848
except:
4949
STATUS = 'beta'
5050

src/CBGLPK.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
2020
Author: Brett G. Olivier
2121
Contact email: [email protected]
22-
Last edit: $Author: bgoli $ ($Id: CBGLPK.py 575 2017-04-13 12:18:44Z bgoli $)
22+
Last edit: $Author: bgoli $ ($Id: CBGLPK.py 645 2018-04-23 22:38:14Z bgoli $)
2323
2424
"""
2525

@@ -164,7 +164,7 @@ def glpk_constructLPfromFBA(fba, fname=None):
164164
raise RuntimeError('INFO: invalid operator: %s' % fba.N.operators[n])
165165

166166
# add user defined constraints
167-
if fba.CM != None:
167+
if fba.CM != None and fba.CM.shape[0] > 0:
168168
baseRows = len(lp.rows)
169169
lp.rows.add(CMmat.shape[0])
170170
for r_ in range(CMmat.shape[0]):

0 commit comments

Comments
 (0)