tskit-dev / pyslim

Tools for dealing with tree sequences coming to and from SLiM.
MIT License
27 stars 23 forks source link

mixed history breaks pyslim import #242

Closed petrelharp closed 2 years ago

petrelharp commented 2 years ago

@chriscrsmith discovered that files produced by an older SLiM that had been modified by into some previous version of pyslim could have metadata schema not matching what we'd expect based on the SLiM version number in metadata. In such cases doing pyslim.load( ) gets the following error:

struct.error: unpack requires a buffer of 8 bytes