Commit 08d6be50 authored by Andrey Filippov's avatar Andrey Filippov
Browse files

other debugging

parent 6c9d6370
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1256,7 +1256,7 @@ public class EyesisAberrations {
        					loopDebugLevel, // debug level
        					loopDebugLevel, // debug level
        					aberrationParameters.noMessageBoxes);
        					aberrationParameters.noMessageBoxes);
        			if (rslt<0){
        			if (rslt<0){
            			if (debugLevel>0) System.out.println("calculateDistortions failed, returned error code "+rslt+" riRetry="+iRetry+" (of "+MaxRetries+")");
            			if (debugLevel>0) System.out.println("calculateDistortions failed, returned error code "+rslt+" iRetry="+iRetry+" (of "+MaxRetries+")");
            			continue;
            			continue;
        			}
        			}
        			correlationSizesUsed=matchSimulatedPattern.getCorrelationSizesUsed();
        			correlationSizesUsed=matchSimulatedPattern.getCorrelationSizesUsed();
+9 −2
Original line number Original line Diff line number Diff line
@@ -3279,12 +3279,19 @@ public class MatchSimulatedPattern {
					   );
					   );
					   if (nodeQueue.isEmpty()) { // nodes==null){ 
					   if (nodeQueue.isEmpty()) { // nodes==null){ 
//						   if (debugLevel>1) System.out.println("All start points tried");
//						   if (debugLevel>1) System.out.println("All start points tried");
						   if (global_debug_level>0) System.out.println("All start points tried");
						   if (global_debug_level>0) {
							   System.out.println("All start points tried");
							   int numLeft=0;
							   for (boolean b:triedIndices) if (!b) numLeft++;
							   System.out.println("startScanIndex="+startScanIndex+" numTries="+numTries+" numLeft="+numLeft);
						   }
						   triedIndices[numTries]=true; // all tried
						   triedIndices[numTries]=true; // all tried
					   } else {
					   } else {
//						   if (debugLevel>1) System.out.println("Found "+nodes.length+" candidates");
//						   if (debugLevel>1) System.out.println("Found "+nodes.length+" candidates");
//						   if (debugLevel>1) System.out.println("distortions: Found "+nodeQueue.size()+" candidates");
//						   if (debugLevel>1) System.out.println("distortions: Found "+nodeQueue.size()+" candidates");
						   if (global_debug_level>0) System.out.println("distortions: Found "+nodeQueue.size()+" candidates");
						   if (global_debug_level>0){
							   System.out.println("distortions: Found "+nodeQueue.size()+" candidates");
						   }
					   }
					   }
				   } else {
				   } else {
					   System.out.println("All start points tried before - should not get here");
					   System.out.println("All start points tried before - should not get here");