From 1e3af75ad546eb9e8d57b92946903eace01a198e Mon Sep 17 00:00:00 2001 From: jprocter Date: Thu, 25 Jan 2007 15:36:51 +0000 Subject: [PATCH] checks for irreflexive mapping in main tester --- src/jalview/util/MapList.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/jalview/util/MapList.java b/src/jalview/util/MapList.java index 87199bb..defa670 100644 --- a/src/jalview/util/MapList.java +++ b/src/jalview/util/MapList.java @@ -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!"); } } -- 1.7.10.2