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.
A friend currently taking the GD5302 was having some trouble getting some examples using SynchronousDynamics to work from the book and asked if I could take a look. I've tried to update synchronous dynamics to match the implementation given in the Epidemic Modelling book and it seems to work successfully on my machine (but will need to wait for continuous integration tests to prove that).
I've updated the calls for
perElementEventDistribution
andfixedRateEventDistribution
to be called against the dynamics of a process instead of the process directly and to pass them the process used to determine the events instead of the current time step. This seems to resolve the attribute errors currently occurring in unit tests and begins to produce successful results for simple models. 83/83 unit tests pass.While I don't fully understand everything about how this library works, it seems like a fascinating project and look forward to seeing the future developments on it.