Skip to content

Commit f41237b

Browse files
committed
0.7.19
1 parent 366f8cf commit f41237b

File tree

5 files changed

+17
-15
lines changed

5 files changed

+17
-15
lines changed

setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
2020
Author: Brett G. Olivier
2121
Contact email: bgoli@users.sourceforge.net
22-
Last edit: $Author: bgoli $ ($Id: setup.py 628 2017-10-20 12:33:26Z bgoli $)
22+
Last edit: $Author: bgoli $ ($Id: setup.py 632 2017-11-03 16:11:03Z bgoli $)
2323
2424
"""
2525

@@ -55,7 +55,7 @@
5555

5656
# release
5757
try:
58-
STATUS = 'r'+'$Rev: 628 $'.replace('Rev: ','').replace('$','').strip()
58+
STATUS = 'r'+'$Rev: 632 $'.replace('Rev: ','').replace('$','').strip()
5959
except:
6060
STATUS = 'beta'
6161

@@ -67,8 +67,8 @@
6767
data_files = mydata_files,
6868
name = "cbmpy",
6969
summary = "CBMPy: Constraint Based Modelling in Python",
70-
#version = "0.7.19.{}".format(STATUS),
71-
version = "0.7.18",
70+
#version = "0.7.20.{}".format(STATUS),
71+
version = "0.7.19",
7272
maintainer = 'Brett G. Olivier',
7373
author = 'Brett G. Olivier',
7474
maintainer_email = 'bgoli@users.sourceforge.net',

src/CBCommon.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
2020
Author: Brett G. Olivier
2121
Contact email: bgoli@users.sourceforge.net
22-
Last edit: $Author: bgoli $ ($Id: CBCommon.py 629 2017-10-24 22:01:14Z bgoli $)
22+
Last edit: $Author: bgoli $ ($Id: CBCommon.py 630 2017-11-03 16:06:50Z bgoli $)
2323
2424
"""
2525
## gets rid of "invalid variable name" info
@@ -301,7 +301,7 @@ def func_getAssociationStrFromGprDict(gprd, out, parent=''):
301301
out = out[1:-1]
302302
return out
303303

304-
304+
# '( llmg_1896 and llmg_1897 and llmg_1898 and llmg_1899 and llmg_1900 and llmg_1901 )'
305305
def getGPRasDictFromString(node, out):
306306
"""
307307
Converts a GPR string '((g1 and g2) or g3)' to a gprDict which is returned
@@ -322,12 +322,14 @@ def getGPRasDictFromString(node, out):
322322
left = node.left.id
323323
right = node.right.id
324324
gref = '{}-{}'.format(left, right)
325-
print('BinOp: {}'.format(gref))
325+
#print('BinOp: {}'.format(gref))
326326
else:
327327
if isinstance(node, ast.Expr):
328328
children = [node.value]
329+
elif isinstance(node, ast.BoolOp):
330+
children = node.values
329331
else:
330-
#children = node.values
332+
print('Childless node: ', type(node))
331333
children = []
332334
cntr2 = 0
333335
for v in children:

src/CBConfig.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
2020
Author: Brett G. Olivier
2121
Contact email: bgoli@users.sourceforge.net
22-
Last edit: $Author: bgoli $ ($Id: CBConfig.py 629 2017-10-24 22:01:14Z bgoli $)
22+
Last edit: $Author: bgoli $ ($Id: CBConfig.py 631 2017-11-03 16:09:23Z bgoli $)
2323
2424
"""
2525
## gets rid of "invalid variable name" info
@@ -29,7 +29,6 @@
2929
## use with caution: gets rid of module xxx has no member errors (run once enabled)
3030
# pylint: disable=E1101
3131

32-
3332
# preparing for Python 3 port
3433
from __future__ import division, print_function
3534
from __future__ import absolute_import
@@ -38,7 +37,7 @@
3837
# release
3938

4039
try:
41-
STATUS = '$Rev: 629 $'.replace('Rev: ', '').replace('$', '').strip()
40+
STATUS = '$Rev: 631 $'.replace('Rev: ', '').replace('$', '').strip()
4241
except Exception:
4342
STATUS = ''
4443

src/CBModel.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
2020
Author: Brett G. Olivier
2121
Contact email: bgoli@users.sourceforge.net
22-
Last edit: $Author: bgoli $ ($Id: CBModel.py 629 2017-10-24 22:01:14Z bgoli $)
22+
Last edit: $Author: bgoli $ ($Id: CBModel.py 630 2017-11-03 16:06:50Z bgoli $)
2323
2424
"""
2525
## gets rid of "invalid variable name" info
@@ -4670,7 +4670,7 @@ def createAssociationAndGeneRefsFromString(self, assoc, altlabels=None):
46704670
try:
46714671
ast.parse(assoc)
46724672
except SyntaxError:
4673-
#err = 'Error in Gene Association String: {}'.format(assoc)
4673+
print('Error in Gene Association String: {}'.format(assoc))
46744674
old_gids, assoc2 = extractGeneIdsFromString(assoc, return_clean_gpr=True)
46754675

46764676
old_gids.sort()
@@ -4695,6 +4695,7 @@ def createAssociationAndGeneRefsFromString(self, assoc, altlabels=None):
46954695
del assoc2, old_gids, tempids, rep_map
46964696
try:
46974697
newtree = getGPRasDictFromString(ast.parse(assoc).body[0], {})
4698+
#print(newtree)
46984699
except SyntaxError:
46994700
err = '\nError in Gene Association String: {}\n'.format(assoc)
47004701
#print(err)

src/__init__.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: bgoli@users.sourceforge.net
22-
Last edit: $Author: bgoli $ ($Id: __init__.py 575 2017-04-13 12:18:44Z bgoli $)
22+
Last edit: $Author: bgoli $ ($Id: __init__.py 631 2017-11-03 16:09:23Z bgoli $)
2323
2424
"""
2525
#
@@ -124,7 +124,7 @@ def test():
124124
#print 'pysces.output_dir = ' + output_dir
125125

126126
print('\n\n***********************************************************************')
127-
print('* Welcome to CBMPy ({}) - PySCeS Constraint Based Modelling *'.format(__version__.replace('.{}'.format(rev),'')))
127+
print('* Welcome to CBMPy ({}) - PySCeS Constraint Based Modelling *'.format(__version__.replace('.{}'.format(rev),'')))
128128
print('* http://cbmpy.sourceforge.net *')
129129
print('* Copyright(C) Brett G. Olivier 2014 - 2017 *')
130130
print('* Dept. of Systems Bioinformatics *')

0 commit comments

Comments
 (0)