From: <ha...@us...> - 2010-09-18 14:57:28
|
Revision: 14333 http://jmol.svn.sourceforge.net/jmol/?rev=14333&view=rev Author: hansonr Date: 2010-09-18 14:57:21 +0000 (Sat, 18 Sep 2010) Log Message: ----------- version=12.1.13_dev # new feature: set STRUCTURE HELIX|SHEET|TURN [a, b, c, d, a1, b1, c1, d1,...] # allows customization of Jmol's phi/psi-based structure calculation Modified Paths: -------------- trunk/Jmol/src/org/jmol/modelsetbio/AminoPolymer.java Modified: trunk/Jmol/src/org/jmol/modelsetbio/AminoPolymer.java =================================================================== --- trunk/Jmol/src/org/jmol/modelsetbio/AminoPolymer.java 2010-09-18 12:47:07 UTC (rev 14332) +++ trunk/Jmol/src/org/jmol/modelsetbio/AminoPolymer.java 2010-09-18 14:57:21 UTC (rev 14333) @@ -456,9 +456,9 @@ } private static boolean checkPhiPsi(float[] list, float psi, float phi) { - for (int i = 0; i < list.length; ) - if (phi >= list[i++] && phi <= list[i++] - && psi >= list[i++] && psi <= list[i++]) + for (int i = 0; i < list.length; i+= 4 ) + if (phi >= list[i] && phi <= list[i + 1] + && psi >= list[i + 2] && psi <= list[i + 3]) return true; return false; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |