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

Check sum of migration rates entering a deme are <= 1. #249

Merged
merged 2 commits into from
Mar 20, 2021

Conversation

grahamgower
Copy link
Member

Closes #244.

Probably needs more tests. I'm also not sure of the best way to avoid hitting this in the hypothesis strategy for generating graphs (but I didn't get any failures yet).

@codecov-io
Copy link

codecov-io commented Mar 19, 2021

Codecov Report

Merging #249 (03f1e9a) into main (62892f6) will increase coverage by 0.14%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #249      +/-   ##
==========================================
+ Coverage   95.97%   96.11%   +0.14%     
==========================================
  Files           7        7              
  Lines        1018     1055      +37     
==========================================
+ Hits          977     1014      +37     
  Misses         41       41              
Impacted Files Coverage Δ
demes/demes.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 62892f6...03f1e9a. Read the comment docs.

Copy link
Member

@jeromekelleher jeromekelleher left a comment

Choose a reason for hiding this comment

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

LGTM

demes/demes.py Outdated Show resolved Hide resolved
@grahamgower
Copy link
Member Author

I'm going to merge this without fixing the hypothesis strategy. The migration-generating part of that code needs to be updated for symmetric migrations anyway (#216), so I'll add a note about the sum<=1 restriction over there.

@grahamgower grahamgower merged commit d8666f5 into popsim-consortium:main Mar 20, 2021
@grahamgower grahamgower deleted the mig-rate branch March 22, 2021 10:07
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.

enforce an upper bound for the migration rate
3 participants