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:
4972212
)
checks for irreflexive mapping in main tester
author
jprocter
<Jim Procter>
Thu, 25 Jan 2007 15:36:51 +0000
(15:36 +0000)
committer
jprocter
<Jim Procter>
Thu, 25 Jan 2007 15:36:51 +0000
(15:36 +0000)
src/jalview/util/MapList.java
patch
|
blob
|
history
diff --git
a/src/jalview/util/MapList.java
b/src/jalview/util/MapList.java
index
87199bb
..
defa670
100644
(file)
--- 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]);
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]);
System.out.println("ShiftTo("+too[0]+")=="+toofrom[0]+" % "+toofrom[1]);
- else
+ } else
System.out.println("ShiftTo("+too[0]+")=="+"NaN! - not Bijective Mapping!");
}
}
System.out.println("ShiftTo("+too[0]+")=="+"NaN! - not Bijective Mapping!");
}
}