Index: trunk/psastro/src/psastroRefstarSubset.c
===================================================================
--- trunk/psastro/src/psastroRefstarSubset.c	(revision 12806)
+++ trunk/psastro/src/psastroRefstarSubset.c	(revision 14165)
@@ -32,4 +32,14 @@
     return true;
   }
+
+// XXX code to better deal with mismatches in the fitted lum function
+# if (0)
+  // if the fitted slopes differ by too much, give up and just try to match the peak bin
+  fSlope = (reffunc->slope / rawfunc->slope);
+  if ((fSlope > 1.3) || (fSlope < 0.77)) {
+      // XXX do something here (choose the peak of the smaller set, generate a histogram for
+      // the other set, then choose the bin from the larger set which has nBin = nPeak
+  }
+# endif
 
   // what is the offset between the two lines at the average magnitude?
