Skip to content

Comments

Update Demographics from_X() style functions to be class methods to support proper inheritance (Fix #30)#45

Merged
ckirkman-IDM merged 10 commits intoEMOD-Hub:mercuryfrom
ckirkman-IDM:30
Nov 20, 2025
Merged

Update Demographics from_X() style functions to be class methods to support proper inheritance (Fix #30)#45
ckirkman-IDM merged 10 commits intoEMOD-Hub:mercuryfrom
ckirkman-IDM:30

Conversation

@ckirkman-IDM
Copy link
Collaborator

@ckirkman-IDM ckirkman-IDM commented Nov 10, 2025

Also ...

  • Restored and updated relevant tests
  • Extended Node and Demographics to_dict() tests to remove overuse of file-writing in existing tests
  • Removed from_params() and from_file() Demographics construction as we will not support them anymore.
  • IndividualProperties object construction now takes a list of IndividualProperty objects instead of ... one of them.

MISSING (waiting for msg from Prashanth):

  • deletion of from_params() route of migration (demographics/migration.py) and associated test(s). We decided as a team to NOT support the Demographics.from_params() construction route as it was problematic in making exact population counts. This particular migration function makes use of that deleted route.

  • Done. -- I will be fixing up linting and doc of appropriate functions before merging.

… updated relevant tests. Extended Node and Demographics to_dict() tests to remove overuse of filewriting tests elsewhere. Removed from_params() and from_file() Demographics construction. (Fix #30)
@ckirkman-IDM ckirkman-IDM merged commit 62c8e2c into EMOD-Hub:mercury Nov 20, 2025
2 checks passed
@ckirkman-IDM ckirkman-IDM deleted the 30 branch November 20, 2025 20:05
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.

2 participants