Closed RieCo432 closed 1 year ago
Turns out my model.subSystems was filled with empty char arrays. It worked fine after fixing that. Still wondering how that's never been an issue before though.
What extra option would be needed here to make it fail gracefully?
if all(charBool)
subSystems = unique(model.subSystems);
elseif all(cellBool)
orderedSubs = cellfun(@(x)
columnVector(x),model.subSystems,'UniformOUtput',false); subSystems = setdiff(vertcat(orderedSubs{:}),''); else subSystems = unique(model.subSystems); end
On Sun, 20 Nov 2022 at 19:18, Colin Ries @.***> wrote:
Turns out my model.subSystems was filled with empty char arrays. It worked fine after fixing that. Still wondering how that's never been an issue before though.
— Reply to this email directly, view it on GitHub https://github.com/opencobra/cobratoolbox/issues/2071#issuecomment-1321219230, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQMEOT7QQ3HIWDPKM4CCZ3WJJ2PJANCNFSM6AAAAAASFOVPQU . You are receiving this because you are subscribed to this thread.Message ID: @.***>
(This message is confidential and may contain privileged information. It is intended for the named recipient only. If you receive it in error please notify me and permanently delete the original message and any copies.)
I've been working with the COBRA Toolbox for almost a year now. Today, the writeCbModel function stopped working. I've tried reading and then saving various models I have been using for months and every time I try to save it, I get the following error:
I have tried calling writeCbModel with the bare minimum of parameters (i.e. the model and a char array as a filename), but no luck.
I've had a look at the commit history for the source files that are involved in this, but there hasn't been any commits in about 3 weeks.
I hereby confirm that I have: