Repository navigation
Fix comp dummy doc when flattening - #514
Merged
Merged
Conversation
CompSBMLDocumentPlugin::checkConsistency set mCheckingDummyDoc and mFlattenAndCheck on the plugin of the document it checks, to make the dummy documents it copies from it skip their model definitions and their flat model. mCheckingDummyDoc was never reset, and mFlattenAndCheck not after an error in a model definition, so a second check of the document and a copy of it skipped the model definitions, and after such an error also the flat model. The flags are now set on the dummy document only. Refs #505.
Merge Mattias's changes to local branch
The intent of 'enablePackage' was to give the model the comp plugins again, but it didn't; we need enablePackageInternal instead.
Member
Author
|
OK! The bug was found and fixed; the rest of Matthias's changes should be in. Now working on Part Two of the fix; there's several things that I've (we've) found that also slow things down, including a double-check of the dummy model which doubled the validation time. |
fbergmann
approved these changes
Nov 12, 2026
fbergmann
left a comment
Member
There was a problem hiding this comment.
thank you @luciansmith and @matthiaskoenig
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New version of #506: reset mCheckingDummyDoc.
This exposed an old bug in the rest of the code, which is now also fixed: an 'enablePackage' call did not do what we wanted to; 'enablePackageInternal' was necessary.