Skip to content

Combine several population objects#262

Merged
alxsrobert merged 32 commits intomainfrom
combine-populations
Apr 29, 2025
Merged

Combine several population objects#262
alxsrobert merged 32 commits intomainfrom
combine-populations

Conversation

@alxsrobert
Copy link
Collaborator

This PR adds the combine_populations function, which is used to combine age stratified populations into a population object. Currently, the combined population would have to be defined by the user. With this new function, the user can create two or more population objects, put them in a list, define a connectivity matrix between the populations and use combine_populations to create a new population object, containing all age groups from both populations. The PR contains a new vignette (combine_populations) that describes how the combine_populations function can be used.

@alxsrobert alxsrobert requested a review from avallecam April 1, 2025 15:10
@Degoot-AM Degoot-AM self-requested a review April 3, 2025 20:36
Copy link
Contributor

@Degoot-AM Degoot-AM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kudos to @alxsrobert , nice work. I have a few observations, please check out my comments and ping me again.

@alxsrobert alxsrobert requested review from Degoot-AM April 7, 2025 17:11
Copy link
Member

@avallecam avallecam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @alxsrobert for the contribution. The vignette is clear and concise. I tested the function with interventions and vaccinations and both worked as expected.

Among suggested edits, could you review the directionality of the epidemic peak from the gravity model?

use callout style as in the main branch.
Copy link
Contributor

@Degoot-AM Degoot-AM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job, @alxsrobert. I’ve updated the info callouts to follow the main branch styling

@alxsrobert alxsrobert requested a review from avallecam April 8, 2025 11:56
Copy link
Member

@avallecam avallecam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing the edits! As in the comments, the output now runs as expected.

@alxsrobert alxsrobert merged commit 4cbabfb into main Apr 29, 2025
10 of 12 checks passed
@alxsrobert alxsrobert deleted the combine-populations branch April 29, 2025 13:16
@alxsrobert alxsrobert restored the combine-populations branch May 8, 2025 09:02
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.

3 participants