Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixing issue introduced in PR #537
  • Loading branch information
josemduarte committed Jul 27, 2016
commit 4fa68339c0a2893f0cc7496176d75a5cfd3ecdbf
Original file line number Diff line number Diff line change
Expand Up @@ -1836,6 +1836,7 @@ private void pdb_ATOM_Handler(String line) {
logger.warn("Element column was empty for atom {} {}. Assigning atom element "
+ "from Chemical Component Dictionary information", fullname.trim(), pdbnumber);
} else {

try {
element = Element.valueOfIgnoreCase(elementSymbol);
guessElement = false;
Expand Down Expand Up @@ -1863,7 +1864,13 @@ private void pdb_ATOM_Handler(String line) {
logger.warn("Atom name {} was not found in the Chemical Component Dictionary information of {}. "
+ "Assigning generic element R to it", fullname.trim(), currentGroup.getPDBName());
} else {
element = Element.valueOfIgnoreCase(elementSymbol);
try {
element = Element.valueOfIgnoreCase(elementSymbol);
} catch (IllegalArgumentException e) {
// this can still happen for cases like UNK
logger.warn("Element symbol {} found in chemical component dictionary for Atom {} {} could not be recognised as a known element. "
+ "Assigning generic element R to it", elementSymbol, fullname.trim(), pdbnumber);
}
}
} else {
logger.warn("Chemical Component Dictionary information was not found for Atom name {}. "
Expand Down