Skip to content

Commit 08ab3e1

Browse files
committed
Revert fix for mmcif files without auth_seq_id column
Parsing such a file again throws a NumberFormatException. Further work/discussion of this issue is on #775, but it was blocking the merging of #774.
1 parent 0c10a2e commit 08ab3e1

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

biojava-structure/src/main/java/org/biojava/nbio/structure/io/mmcif/SimpleMMcifConsumer.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -328,13 +328,7 @@ public void newAtomSite(AtomSite atom) {
328328

329329
String recordName = atom.getGroup_PDB();
330330
String residueNumberS = atom.getAuth_seq_id();
331-
Integer residueNrInt;
332-
if(residueNumberS != null) {
333-
residueNrInt = Integer.parseInt(residueNumberS);
334-
} else {
335-
String label_seq_id = atom.getLabel_seq_id();
336-
residueNrInt = Integer.parseInt(label_seq_id);
337-
}
331+
Integer residueNrInt = Integer.parseInt(residueNumberS);
338332

339333
// the 3-letter name of the group:
340334
String groupCode3 = atom.getLabel_comp_id();
-1 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)