Closed TaranRallings closed 3 months ago
Attention: Patch coverage is 96.15385%
with 3 lines
in your changes are missing coverage. Please review.
Project coverage is 94.69%. Comparing base (
626476b
) to head (f0d1a4a
).
Files | Patch % | Lines |
---|---|---|
...ual_ecosystem/models/animals/animal_communities.py | 88.23% | 2 Missing :warning: |
virtual_ecosystem/models/animals/animal_cohorts.py | 96.55% | 1 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Description
This adds a new trait to functional groups, reproductive type, which is broken into two variations, iteroparity (reproducing multiple times) and semelparity (reproducing once and then dying). Iteroparous organisms reproduce as before, semelparous organisms also use some of their non-reproductive mass in the reproductive event and then the cohort dies.
This PR also expands non-predation mortality to include a fixed background mortality, senescence mortality, and starvation mortality. There were small errors in the Madingley paper for the latter two mortalities so you may notice an excess of diagnostics in the testing from when I was trying to figure out if I had gone mad. I left them in, in case they might be useful later. Let me know if you think I should remove them.
Fixes # (issue)
Type of change
Key checklist
pre-commit
checks:$ pre-commit run -a
$ poetry run pytest
Further checks