checks for irreflexive mapping in main tester
[jalview.git] / src / jalview / util / MapList.java
index 87199bb..defa670 100644 (file)
@@ -236,9 +236,11 @@ public class MapList
               System.out.print(too[0]+" % "+too[1]);
               System.out.print("\t+--+\t");
               int[] toofrom=ml.shiftTo(too[0]);
-              if (toofrom!=null)
+              if (toofrom!=null) {
+                  if (toofrom[0]!=from)
+                      System.err.println("Mapping not reflexive:"+from+" "+too[0]+"->"+toofrom[0]);
                   System.out.println("ShiftTo("+too[0]+")=="+toofrom[0]+" % "+toofrom[1]);
-              else
+              } else
                   System.out.println("ShiftTo("+too[0]+")=="+"NaN! - not Bijective Mapping!");
           }
       }