Index: /branches/sj_branches/sj_ippTests_branch_20080929/ippTests/compIPPphoto.py
===================================================================
--- /branches/sj_branches/sj_ippTests_branch_20080929/ippTests/compIPPphoto.py	(revision 25084)
+++ /branches/sj_branches/sj_ippTests_branch_20080929/ippTests/compIPPphoto.py	(revision 25085)
@@ -64,19 +64,25 @@
 #   Note 253" - somewhere on the web as sun253.html
 # 
-
-
+#
+#
 # XXX Todo: labels! group by runs? different colours for different
 # bands; include seeing? plot things against seeing?
-
+#
 # Also: the plotcol lists need to be grouped into things that are to
 # appear on the same page. For the beginning, that's the entire list
 # (and that's probably quite enough anyway).
-
+#
 # Looking at the extended flag in PS1 vs. SDSS is done via d_pointsource.
-
+#
+# For running in earnest:
 # os.chdir('/disk1/jester/IPP/data/SDSS/stripe82/coadd/compare')
 # execfile('/disk1/jester/usrdevel/ipp_sj/ippTests/compIPPphoto.py')
 # h1,h2=compIPPphoto('test.fits','new',workdir='/IPP/data/SDSS/stripe82/coadd/compare',runlist=[1056,1755])
-
+#
+# For testing on laptop:
+# os.chdir('/Users/jester/science/sdss/coadd/Hawaii/compare_tsObj')
+# execfile('/Users/jester/usrdevel/ipp_ippTests_branch/ippTests/compIPPphoto.py')
+# h1,h2=compIPPphoto('test.fits','new',workdir='/Users/jester/science/sdss/coadd/Hawaii/compare_tsObj',runlist=[1056,1755])
+#
 # Here follow two specially formatted lists governing which plots are
 # made. The first is for plots being done on a field-by-field basis,
@@ -276,6 +282,4 @@
     """Make diagnostic plots for a single table, based on values in
     values_hash"""
-    # XXX Todo: window commands instead of (or in addition to?) psnup
-    # for putting plots on same paper
     from subprocess import call
     from numpy import concatenate
@@ -633,5 +637,8 @@
         goodcondition &= (col2 != val)
     col1 = col1[goodcondition]
-    col2_good = col2[goodcondition]
+    # For some reason, the following line used to be
+    # col2_good = col2[goodcondition]
+    # which looks like an error
+    col2 = col2[goodcondition]
     return col1,col2
     #
