Skip to content

Commit

Permalink
throw error where our problem lies
Browse files Browse the repository at this point in the history
  • Loading branch information
molpopgen committed Aug 16, 2023
1 parent b29f3f0 commit e854f09
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/evolve_discrete_demes/diploid_pop_fitness.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ calculate_diploid_fitness(
auto idx = deme_to_gvalue_map[offspring_metadata[i].deme];
//gvalue_pointers[idx]->operator()(rng, offspring_metadata[i].label, pop,
// offspring_metadata[i]);
throw std::runtime_error("the parents are the ids here, not the labels.");
gvalue_pointers[idx]->operator()(fwdpy11::DiploidGeneticValueData(
rng, pop, pop.diploid_metadata[offspring_metadata[i].parents[0]],
pop.diploid_metadata[offspring_metadata[i].parents[1]], i,
Expand Down

0 comments on commit e854f09

Please sign in to comment.