-
Notifications
You must be signed in to change notification settings - Fork 109
apply rules BEFORE checking for transformation #292
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
base: development
Are you sure you want to change the base?
apply rules BEFORE checking for transformation #292
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.
can wait until after v1.14.0 |
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
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.