Skip to content

Commit

Permalink
Skipping PDB lines shorter than 6
Browse files Browse the repository at this point in the history
  • Loading branch information
khb7840 committed Apr 16, 2024
1 parent 50aaef9 commit 09a46b2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/structure/io/pdb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ impl Reader<File> {
// Current version does not support multiple models in one PDB file
break;
}
// If line is less than 6 characters, skip the line
if atomline.len() < 6 {
continue;
}
match &atomline[..6] {
"MODEL " => {
model += 1;
Expand Down

0 comments on commit 09a46b2

Please sign in to comment.