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

Add type parameter for motility #56

Closed
mastrof opened this issue Oct 24, 2023 · 2 comments
Closed

Add type parameter for motility #56

mastrof opened this issue Oct 24, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@mastrof
Copy link
Owner

mastrof commented Oct 24, 2023

AbstractMicrobe types should be given a type parameter to represent motility, in order to avoid the inefficient motility::AbstractMotility in the struct definition.

@mastrof mastrof added the enhancement New feature or request label Oct 24, 2023
@mastrof
Copy link
Owner Author

mastrof commented Oct 26, 2023

On a second thought, this would make model creation really cumbersome as it requires to define model = UnremovableABM(Union{Microbe{2,RunTumble},Microbe{2,RunReverse}}, space, dt) to have e.g. a mixture of two motility patterns.

@mastrof
Copy link
Owner Author

mastrof commented Dec 21, 2023

Just removed the typing on the motility field for now with #62

@mastrof mastrof closed this as completed Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant