Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PEtab export fails for multiple preequilibration conditions #159

Open
elbaraim opened this issue Sep 1, 2020 · 0 comments
Open

PEtab export fails for multiple preequilibration conditions #159

elbaraim opened this issue Sep 1, 2020 · 0 comments

Comments

@elbaraim
Copy link

elbaraim commented Sep 1, 2020

Dear d2d team,

I am currently trying to export a d2d model into the PEtab format by using arExportPEtab('model_name', true).
This model has 4 different preequilibration conditions,

>>> length(ar.model(1).ss_condition)
4

Therefore the following error occurs:

Index exceeds matrix dimensions.

Error in arExportPEtab (line 196)
                    num2str(ar.model(imodel).condition(ar.model(imodel).ss_condition.src).dLink)]};

Which relates in the code to:

% pre-equiblibration
if isfield(ar, 'ss_conditions')
        preEquilibrationId = cell(length(time),1);
        preEquilibrationId(:) = ...
                    {['model' num2str(imodel) '_data' ...
                    num2str(ar.model(imodel).condition(ar.model(imodel).ss_condition.src).dLink)]};
        rowsToAdd = [rowsToAdd, table(preEquilibrationId)];
end

I am working with the latest d2d version on master branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant