Skip to content

Animal - Update territory size scaling#1424

Merged
TaranRallings merged 10 commits intodevelopfrom
1423-animal---update-territory-scaling-units
Mar 13, 2026
Merged

Animal - Update territory size scaling#1424
TaranRallings merged 10 commits intodevelopfrom
1423-animal---update-territory-scaling-units

Conversation

@TaranRallings
Copy link
Copy Markdown
Collaborator

Description

This replaces the toy method for territory size scaling with a proper allometric function.

Updates

  • rework of territory_size scaling function including unit alignment
  • reworked animal_cohort attributes relating to territory size
  • new test

Fixes # (issue)

Type of change

  • New feature (non-breaking change which adds functionality)
  • Optimization (back-end change that speeds up the code)
  • Bug fix (non-breaking change which fixes an issue)

Key checklist

  • Make sure you've run the pre-commit checks: $ pre-commit run -a
  • All tests pass: $ poetry run pytest

Further checks

  • Code is commented, particularly in hard-to-understand areas
  • Tests added that prove fix is effective or that feature works
  • Relevant documentation reviewed and updated

@TaranRallings TaranRallings linked an issue Mar 10, 2026 that may be closed by this pull request
@TaranRallings TaranRallings self-assigned this Mar 10, 2026
Copy link
Copy Markdown
Collaborator

@jacobcook1995 jacobcook1995 left a comment

Choose a reason for hiding this comment

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

This is a pretty straightforward improvement

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Mar 12, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.94%. Comparing base (165d494) to head (1f2fe60).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1424      +/-   ##
===========================================
+ Coverage    94.83%   94.94%   +0.11%     
===========================================
  Files           71       71              
  Lines         7452     7460       +8     
===========================================
+ Hits          7067     7083      +16     
+ Misses         385      377       -8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@TaranRallings TaranRallings merged commit 3454844 into develop Mar 13, 2026
13 checks passed
@TaranRallings TaranRallings deleted the 1423-animal---update-territory-scaling-units branch March 13, 2026 08:26
@TaranRallings TaranRallings restored the 1423-animal---update-territory-scaling-units branch March 13, 2026 14:20
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.

Animal - Update territory scaling units

3 participants