[Swift-commit] r5509 - SwiftApps/SciColSim

wilde at ci.uchicago.edu wilde at ci.uchicago.edu
Mon Jan 23 12:18:10 CST 2012


Author: wilde
Date: 2012-01-23 12:18:10 -0600 (Mon, 23 Jan 2012)
New Revision: 5509

Modified:
   SwiftApps/SciColSim/annealing.swift
Log:
Add support for color text in messages.

Modified: SwiftApps/SciColSim/annealing.swift
===================================================================
--- SwiftApps/SciColSim/annealing.swift	2012-01-23 17:06:58 UTC (rev 5508)
+++ SwiftApps/SciColSim/annealing.swift	2012-01-23 18:18:10 UTC (rev 5509)
@@ -1,4 +1,5 @@
 import "math";
+import "colortext";
 
 type file;
 
@@ -121,7 +122,7 @@
                     tracef("in multi_annealing: i=%i j=%i k=%i\n", i, j, k);
                 }
                 // Up to here, x[] and dx[] are only set for previous i
-tracef("in multi_annealing: i=%i j=%i calling multi_loss\n",i,j);
+tracef( @strcat(color(3,"in multi_annealing: "),"i=%i j=%i calling multi_loss\n"),i,j);
 #tracef("in multi_annealing: i=%i j=%i calling multi_loss try_x=%q\n",i,j,try_x);
                 mlres[i][j] = multi_loss(i,j,try_x, target_innov, evolve_reruns); # do the N evolve()'s, N=evolve_reruns
 tracef("in multi_annealing: i=%i j=%i ret vals from multi_loss=(%f,%f)\n",i,j,mlres[i][j].loss,mlres[i][j].sdev);




More information about the Swift-commit mailing list