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

Use of hooks? #14

Open
AaronGullickson opened this issue Aug 30, 2024 · 1 comment
Open

Use of hooks? #14

AaronGullickson opened this issue Aug 30, 2024 · 1 comment

Comments

@AaronGullickson
Copy link

Hello, Berkeley Demography grad here and I am excited to see this project. I have been playing around with it a bit in the hopes of doing a project that looks at the ineritance of group ancestry in populations with varying degrees of exogamy. However, I am finding the set up for how births are assigned back to groups to be limiting. From Carl Mason's documentation of SOCSIM, it seems that users could adjust this with a hook of the enhance_birth function in the C code. Is it possible to use these kinds of hooks directly in rsocsim or would I need to fork and do it myself (or use vanilla SOCSIM).

@tomthe
Copy link
Member

tomthe commented Nov 25, 2024

I am sorry for this long delay. I was sure I did answer you back in September, but I must have done something wrong. Do you still consider rsocsim?

I removed all the files related to enhancements, but I did not remove the hooks in the main code.
You have 3 options:

  • use vanilla socsim (I wouldn't)
  • use rsocsim, fork it and change the birth function directly
  • edit in the hooks again (this would also require some changes in rsocsim, so that the hooks get used. But these changes could be integrated into official rsocsim)

I would recommend to fork rsocsim and edit the birth function directly. That would get you the fastest results and as long as you don't edit something else very much, you could still update it with rsocsim updates easily.

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