Skip to content

Commit 1c54e95

Browse files
committed
fix bug in (unreleased) recipe 16.11, life-long monogamy
1 parent 5d9e29f commit 1c54e95

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

QtSLiM/recipes/Recipe 16.11 - Life-long monogamous mating.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ first() {
2222
if (size(mated_individuals) > 0)
2323
{
2424
tags = mated_individuals.tag;
25-
tag_counts = tabulate(tags, maxbin=size(mated_individuals)-1);
25+
tag_counts = tabulate(tags);
2626
tags_to_fix = which(tag_counts == 1);
2727
unmated_indices = match(tags_to_fix, tags);
2828
mated_individuals[unmated_indices].tag = -1;

SLiMgui/Recipes/Recipe 16.11 - Life-long monogamous mating.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ first() {
2222
if (size(mated_individuals) > 0)
2323
{
2424
tags = mated_individuals.tag;
25-
tag_counts = tabulate(tags, maxbin=size(mated_individuals)-1);
25+
tag_counts = tabulate(tags);
2626
tags_to_fix = which(tag_counts == 1);
2727
unmated_indices = match(tags_to_fix, tags);
2828
mated_individuals[unmated_indices].tag = -1;

0 commit comments

Comments
 (0)