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

reaction widths deleted by autolayout #34

Open
luciansmith opened this issue Dec 18, 2024 · 2 comments
Open

reaction widths deleted by autolayout #34

luciansmith opened this issue Dec 18, 2024 · 2 comments

Comments

@luciansmith
Copy link

The reaction dimension width does not persist across calling autolayout:

            ret1 = LIBSBMLNETWORK_CPP_NAMESPACE::setReactionDimensionWidth(sbml, 0, xval);
            double width = LIBSBMLNETWORK_CPP_NAMESPACE::getDimensionWidth(sbml, "J0");
            LIBSBMLNETWORK_CPP_NAMESPACE::autolayout(sbml, m_autolayout.maxNumConnectedEdges);
            width = LIBSBMLNETWORK_CPP_NAMESPACE::getDimensionWidth(sbml, "J0");

'width' starts off at what it was set, and after autolayout is called, it's then zero.

@adelhpour
Copy link
Member

This needs to be fixed along with the one at issue #16. It seems that the autolayout does not keep reaction info. I'll work on it.

@luciansmith
Copy link
Author

Another problem: if a reaction is defined with multiple curve segments, the later ones seem to get deleted as well.

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

No branches or pull requests

2 participants