From e854f0931330f609cf7e4085b637b4d4369deb66 Mon Sep 17 00:00:00 2001 From: "Kevin R. Thornton" Date: Wed, 16 Aug 2023 13:20:44 -0700 Subject: [PATCH] throw error where our problem lies --- lib/evolve_discrete_demes/diploid_pop_fitness.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/evolve_discrete_demes/diploid_pop_fitness.cc b/lib/evolve_discrete_demes/diploid_pop_fitness.cc index 9397d9dddb..99333bc290 100644 --- a/lib/evolve_discrete_demes/diploid_pop_fitness.cc +++ b/lib/evolve_discrete_demes/diploid_pop_fitness.cc @@ -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,