Skip to content

Really using the given voxel_index in remove_agent_from_voxel#159

Merged
MathCancer merged 1 commit intoMathCancer:developmentfrom
sysbio-curie:fix/remove_agent_from_voxel
Jul 26, 2023
Merged

Really using the given voxel_index in remove_agent_from_voxel#159
MathCancer merged 1 commit intoMathCancer:developmentfrom
sysbio-curie:fix/remove_agent_from_voxel

Conversation

@vincent-noel
Copy link
Copy Markdown
Collaborator

This PR modifies remove_agent_from_voxel, to actually use the voxel_index used in function's argument. This is needed when an agent span multiple voxels (such as in PhysiMESS).

In current PhysiCell, this argument is ignored, and the current_mechanics_voxel is queried to know which voxel to remove the agent from. However, in current PhysiCell, this function is always called with the current_mechanics_voxel as argument. So this fix won't have any effect on current PhysiCell, and will allow PhysiCell extension where agents can span multiple voxels.

@MathCancer MathCancer merged commit d0c560f into MathCancer:development Jul 26, 2023
@vincent-noel vincent-noel deleted the fix/remove_agent_from_voxel branch July 27, 2023 11:57
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

Successfully merging this pull request may close these issues.

2 participants