tskit-dev / msprime

Simulate genealogical trees and genomic sequence data using population genetic models
GNU General Public License v3.0
170 stars 84 forks source link

auto_flush_edges #2183

Closed GertjanBisschop closed 1 year ago

GertjanBisschop commented 1 year ago

As discussed in #2181 and #2182.

Note the self->num_buffered_edges = 0; in msp_reset(). When resetting the simulation there might be leftover edges in the buffer if the simulation ended with an error. This was the case for test_demographic_events.

codecov[bot] commented 1 year ago

Codecov Report

Merging #2183 (9878a78) into main (461dfd2) will increase coverage by 0.04%. The diff coverage is 71.42%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2183      +/-   ##
==========================================
+ Coverage   91.41%   91.46%   +0.04%     
==========================================
  Files          20       20              
  Lines       11258    11253       -5     
  Branches     2298     2297       -1     
==========================================
+ Hits        10291    10292       +1     
+ Misses        526      523       -3     
+ Partials      441      438       -3     
Flag Coverage Δ
C 91.46% <71.42%> (+0.04%) :arrow_up:
python 98.68% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
lib/msprime.c 86.12% <71.42%> (+0.13%) :arrow_up:

Continue to review full report in Codecov by Sentry.

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