update the if-query so that it spans all possible contact with cells cases.#411
Open
elmbeech wants to merge 1 commit intoMathCancer:developmentfrom
Open
update the if-query so that it spans all possible contact with cells cases.#411elmbeech wants to merge 1 commit intoMathCancer:developmentfrom
elmbeech wants to merge 1 commit intoMathCancer:developmentfrom
Conversation
drbergman
requested changes
Feb 18, 2026
Collaborator
There was a problem hiding this comment.
great catch! Seems like the right fix. I found two other bugs to fix:
- At the end of
get_cell_contact_signals
std::string search_for = "contact with " + cell_definitions_by_type[0]->name;
static int scaling_start_index = find_signal_index( search_for );
for( int i=0; i < n+2 ; i++ )
{ output[i] /= signal_scales[scaling_start_index+i]; }we should loop until i < n+5
- In this block in
get_selected_signals
for( int i=0; i < indices.size() ; i++ )
{
int ind = indices[i];
if( ind >= contact_start_index && ind < contact_start_index+n+2)
{ signals[i] = contact_signals[ind-contact_start_index]; }
else
{ signals[i] = get_single_signal( pCell , ind ); }
}the check should instead be ind < contact_start_index+n+5 (the 5 is the difference). @vincent-noel It looks like PhysiBoSS uses get_selected_signals. Ultimately, that falls back to get_single_signal which would spam a warning message if this bug was affecting your users. So no extra concern here for this function.
Contributor
Author
|
@drbergman , i wonder, would it maybe not be better to make constant: and then just use this constant everywhere. |
Collaborator
|
sure! Makes sense as all these changes are within one file. |
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.
the possible cases: