File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -110,13 +110,13 @@ def create_mat_dict(model):
110
110
mat ["subSystems" ] = _cell (rxns .list_attr ("subsystem" ))
111
111
mat ["csense" ] = "" .join (model ._constraint_sense )
112
112
mat ["S" ] = model .S
113
- mat ["lb" ] = array (rxns .list_attr ("lower_bound" ))
114
- mat ["ub" ] = array (rxns .list_attr ("upper_bound" ))
115
- mat ["b" ] = array (mets .list_attr ("_bound" ))
116
- mat ["c" ] = array (rxns .list_attr ("objective_coefficient" ))
117
113
# multiply by 1 to convert to float, working around scipy bug
118
114
# https://github.com/scipy/scipy/issues/4537
119
- mat ["rev" ] = array (rxns .list_attr ("reversibility" )) * 1
115
+ mat ["lb" ] = array (rxns .list_attr ("lower_bound" )) * 1.
116
+ mat ["ub" ] = array (rxns .list_attr ("upper_bound" )) * 1.
117
+ mat ["b" ] = array (mets .list_attr ("_bound" )) * 1.
118
+ mat ["c" ] = array (rxns .list_attr ("objective_coefficient" )) * 1.
119
+ mat ["rev" ] = array (rxns .list_attr ("reversibility" ))
120
120
mat ["description" ] = str (model .description )
121
121
return mat
122
122
You can’t perform that action at this time.
0 commit comments