Skip to content
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

Cell width #45

Open
georgeoshardo opened this issue Jul 20, 2023 · 4 comments
Open

Cell width #45

georgeoshardo opened this issue Jul 20, 2023 · 4 comments

Comments

@georgeoshardo
Copy link

Hi CellModeller team!

Is there a way to change the cell width in simulations? I believe at the moment all cells are the same width.

@timrudge
Copy link
Contributor

timrudge commented Jul 20, 2023 via email

@georgeoshardo
Copy link
Author

Thank you, I will try setting it again, but if I remember from my previous attempts at working with this attribute, it is not technically possible to, say, have the daughter of a cell be a different length to its mother upon birth, correct?

@timrudge
Copy link
Contributor

timrudge commented Jul 24, 2023 via email

@georgeoshardo
Copy link
Author

Apologies for the late reply, I cannot find how to do this. No matter what I try, I cannot get cells to become wider within the simulation. Setting a new radius inside the divide function does not change the simulation output.

E.g

def divide(parent, d1, d2):
    # Specify target cell size that triggers cell division
    d1.targetVol = 3.5 + random.uniform(0.0,0.5)
    d2.targetVol = 3.5 + random.uniform(0.0,0.5)
    d1.radius = 1
    d2.radius = 1

If I print the radius at the beginning of the divide check loop, it always resets back to 0.5.

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

No branches or pull requests

2 participants