-
Notifications
You must be signed in to change notification settings - Fork 4
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
WIP: Use AxisArray for abundances.grid #54
Conversation
Update, I figured out the allocation issue, it was due to a small bug I introduced in the output code. There is now negligible difference from dev
|
@sdl1 Do you want to resolve the conflicts in this, and then hopefully we can get it merged? |
Yep currently going through those. I also need to fix the tests and the other example scripts |
As part of this I'm considering making it so that the |
@sdl1 that sounds good! I think there might be a few things that the |
Yes that should be possible either there or directly on the initial_population array at the beginning. |
@sdl1 Can you provide a brain dump of things that need to be done both on the |
Closing this since it is out of date and requires more work than I originally realised. Below is a general list of things which ideally need to be done to make this work nicely:
|
Possible solution to ScottishCovidResponse/SCRCIssueTracking#281
This makes
EpiLandscape.grid
a multi-DAxisArray
view ontoEpiLandscape.matrix
.Example usage is in
Scotland_run.jl
. It sets up aninitial_population
which is anAxisArray
of the appropriate dimension and axes. All the initial setting of infected individuals etc is done on that array, which is then used to populate the initialmatrix / grid
.Advantages:
AxisArray
data coming fromparse_hdf5
(e.g. don't have to re-write all the age categories)to the following (could be even shorter if various AxisArray issues were fixed)
Disadvantages:
AxisArrays
is a bit flaky, it has a bunch of issues. So far I didn't find anything insurmountable...@btime simulate_record!
:abundances
, doesn't address other things like the transition matrix, etc