Skip to content

Commit

Permalink
fix probe tests broken by the stereochemistry template matching bug f…
Browse files Browse the repository at this point in the history
…ix a while ago
  • Loading branch information
cuchaz committed Sep 28, 2019
1 parent b7a1ce7 commit 26621c1
Show file tree
Hide file tree
Showing 4 changed files with 6,079 additions and 823 deletions.
8 changes: 8 additions & 0 deletions src/edu/duke/cs/osprey/structure/Residue.java
Expand Up @@ -506,6 +506,14 @@ public Atom getAtomByName(String name) {
}
return null;
}

public Atom getAtomByNameOrThrow(String name) {
Atom atom = getAtomByName(name);
if (atom == null) {
throw new NoSuchElementException("no atom named " + name + " in residue " + getPDBResNumber());
}
return atom;
}

public int getAtomIndexByName(String n){
//index in atoms of atom with name n
Expand Down

0 comments on commit 26621c1

Please sign in to comment.