1919
2020Author: Brett G. Olivier
212122- Last edit: $Author: bgoli $ ($Id: CBXML.py 685 2019-06-17 15:54:33Z bgoli $)
22+ Last edit: $Author: bgoli $ ($Id: CBXML.py 691 2019-07-26 12:09:03Z bgoli $)
2323
2424"""
2525## gets rid of "invalid variable name" info
@@ -3662,6 +3662,7 @@ def __init__(self, pid):
36623662 ubcntr += 1
36633663 # print 'Added new upper bound', newId
36643664 elif HAVE_FBC and FBCver == 2 :
3665+ timeFBV2 = time .time ()
36653666 for bnd in FB_data :
36663667 FB = CBModel .FluxBound (bnd ['id' ], bnd ['reaction' ], bnd ['operation' ], bnd ['value' ])
36673668 FB .annotation = bnd ['annotation' ]
@@ -3672,6 +3673,7 @@ def __init__(self, pid):
36723673 if FB .name == None or FB .name == '' :
36733674 FB .name = bnd ['parameter' ]
36743675 CONSTR .append (FB )
3676+ print ('FluxBounds process1: {}' .format (round (time .time () - timeFBV2 , 3 )))
36753677
36763678 if DEBUG : print ('FluxBounds process: {}' .format (round (time .time () - time0 , 3 )))
36773679 time0 = time .time ()
@@ -3801,9 +3803,11 @@ def __init__(self, pid):
38013803 if DEBUG : print ('Reaction build: {}' .format (round (time .time () - time0 , 3 )))
38023804 time0 = time .time ()
38033805 fbexists = []
3806+ timeFBV2 = time .time ()
38043807 for c_ in CONSTR :
38053808 fm .addFluxBound (c_ , fbexists = fbexists )
3806- fbexists .append ((c_ .getReactionId (), c_ .getType ()))
3809+ fbexists .append ("{}_{}" .format (c_ .getReactionId (), c_ .getType ()))
3810+ print ('FluxBounds process2: {}' .format (round (time .time () - timeFBV2 , 3 )))
38073811 del fbexists
38083812 if DEBUG : print ('FluxBound build: {}' .format (round (time .time () - time0 , 3 )))
38093813 time0 = time .time ()
0 commit comments