apply rules BEFORE checking for transformation#292
Open
drbergman wants to merge 2 commits intoMathCancer:developmentfrom
Open
apply rules BEFORE checking for transformation#292drbergman wants to merge 2 commits intoMathCancer:developmentfrom
drbergman wants to merge 2 commits intoMathCancer:developmentfrom
Conversation
Everything else (in phenotype updates) is after applying the rules. with it ordered previously (transform then apply rules), it is possible for cells at the beginning of a sim to transform before the rule inhibiting it is applied.
Collaborator
Author
|
can wait until after v1.14.0 |
Collaborator
Author
Collaborator
Author
|
a similar argument applies to when we compute the gradient vectors. those are calculated first only after the first application of the rules. In this case, the gradient calculation should happen before the rules are applied to avoid this kind of behavior. Note: this PR does not address this gradient-based issue |
There was a problem hiding this comment.
Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.
Comments suppressed due to low confidence (1)
core/PhysiCell_cell.cpp:322
- [nitpick] The inline comment 'New March 2022' may be misleading given the reordering of operations. Consider updating the comment to reflect that rules are now applied prior to transformations.
// New March 2022
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.






Everything else (in phenotype updates) is after applying the rules. with it ordered previously (transform then apply rules), it is possible for cells at the beginning of a sim to transform before the rule inhibiting it is applied.