MolecularMatters / raw_pdb

A C++11 library for reading Microsoft Program DataBase PDB files
BSD 2-Clause "Simplified" License
675 stars 91 forks source link

Check TPI stream is valid before creating it #90

Closed sschoener closed 2 weeks ago

sschoener commented 2 weeks ago

The examples erroneously create a TPI stream before checking that it is valid to do so. This is likely a copy-paste error, as on a first look it seems that we are doing the same for DBI. However, for DBI there are two checks, which has probably created this confusion:

image

MolecularMatters commented 2 weeks ago

Great, thank you for finding and fixing this!