opencobra / cobratoolbox

The COnstraint-Based Reconstruction and Analysis Toolbox. Documentation:
https://opencobra.github.io/cobratoolbox
Other
253 stars 318 forks source link

oldindices variable used before it is defined #723

Closed snmendoz closed 7 years ago

snmendoz commented 7 years ago

*I tried to run the tutorial for fastgapfill and I got the following error: Undefined function or variable 'oldindices'.

Error in mergeTwoModels (line 101) modelNew.(fields1{i})(newindices1) = model1.(fields1{i})(oldindices);

Error in generateSUXComp (line 68) [modelExpanded] = mergeTwoModels(modelExpanded,KEGGComp,1);

Error in prepareFastGapFill (line 77) MatricesSUX = generateSUXComp(consistModel,dictionary, filename,blackList,listCompartments);

Error in runGapFill_example (line 76) tic; [consistModel,consistMatricesSUX,BlockedRxns] = prepareFastGapFill(model);*

I hereby confirm that I have:

(Note: You may replace [] with [X] to check the box)

laurentheirendt commented 7 years ago

Fixed in PR #832. Thanks @snmendoz for reporting.