Index: trunk/psphot/src/psphotReadoutKnownSources.c
===================================================================
--- trunk/psphot/src/psphotReadoutKnownSources.c	(revision 21248)
+++ trunk/psphot/src/psphotReadoutKnownSources.c	(revision 21366)
@@ -19,5 +19,5 @@
 
     // Generate the mask and weight images, including the user-defined analysis region of interest
-    psphotSetMaskAndWeight (config, readout, recipe);
+    psphotSetMaskAndVariance (config, readout, recipe);
 
     // display the image, weight, mask (ch 1,2,3)
@@ -41,8 +41,8 @@
     // use the peak measured in the moments analysis:
     for (int i = 0; i < sources->n; i++) {
-	pmSource *source = sources->data[i];
-	source->peak->flux = source->moments->Peak;
+        pmSource *source = sources->data[i];
+        source->peak->flux = source->moments->Peak;
     }
-    
+
     // classify sources based on moments, brightness (psf is not known)
     if (!psphotRoughClass (readout, sources, recipe, false)) {
@@ -53,6 +53,6 @@
     pmPSF *psf = psphotChoosePSF (readout, sources, recipe);
     if (!psf) {
-	psLogMsg ("psphot", 3, "failure to construct a psf model");
-	return psphotReadoutCleanup (config, readout, recipe, detections, psf, sources);
+        psLogMsg ("psphot", 3, "failure to construct a psf model");
+        return psphotReadoutCleanup (config, readout, recipe, detections, psf, sources);
     }
     psphotVisualShowPSFModel (readout, psf);
