molpopgen / fwdpp

fwdpp is a C++ template library for implementing efficient forward-time population genetic simulations
http://fwdpp.readthedocs.io
GNU General Public License v3.0
27 stars 11 forks source link

Fix edge transfer during simplification #267

Closed molpopgen closed 4 years ago

molpopgen commented 4 years ago

For the standard case of simplification, #259 added a function to help transfer new edges from the temp table to the output table. Work on molpopgen/fwdpy11#523 found a corner case where an off-by-1 error resulted in zero-length edge tables after simplification. This PR reverts the changes from #259 to the older/safer approach.