git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e276157
)
JAL-1998 bugfix for division by zero error for PDB entries with chain(s) consisiting...
author
tcofoegbu
<tcnofoegbu@dundee.ac.uk>
Mon, 25 Jan 2016 15:06:26 +0000
(15:06 +0000)
committer
tcofoegbu
<tcnofoegbu@dundee.ac.uk>
Mon, 25 Jan 2016 15:06:26 +0000
(15:06 +0000)
src/MCview/PDBChain.java
patch
|
blob
|
history
diff --git
a/src/MCview/PDBChain.java
b/src/MCview/PDBChain.java
index
6d5f9fe
..
a43626f
100755
(executable)
--- a/
src/MCview/PDBChain.java
+++ b/
src/MCview/PDBChain.java
@@
-252,7
+252,7
@@
public class PDBChain
* If > 99% 'P', flag as nucleotide; note the count doesn't include the last
* residue
*/
- if (residues.size() > 0 && (numNa / (residues.size() - 1) > 0.99))
+ if (residues.size() > 1 && (numNa / (residues.size() - 1) > 0.99))
{
isNa = true;
}