Index: trunk/psphot/src/psphotApplyPSF.c
===================================================================
--- trunk/psphot/src/psphotApplyPSF.c	(revision 4977)
+++ trunk/psphot/src/psphotApplyPSF.c	(revision 5048)
@@ -39,6 +39,6 @@
 	// skip non-astronomical objects (very likely defects)
 	// XXX EAM : should we try these anyway?
-	if (source->type == PS_SOURCE_DEFECT) continue; 
-	if (source->type == PS_SOURCE_SATURATED) continue;
+	if (source->type == PM_SOURCE_DEFECT) continue; 
+	if (source->type == PM_SOURCE_SATURATED) continue;
 
 	// use the source moments, etc to guess basic model parameters
@@ -65,5 +65,5 @@
 	}
 
-	if (i > 66) psTraceSetLevel (".psLib.dataManip.psMinimizeLMChi2", 5);
+	// if (i > 66) psTraceSetLevel (".psLib.dataManip.psMinimizeLMChi2", 5);
 	    
 	// fit PSF model (set/unset the pixel mask)
@@ -73,5 +73,5 @@
 	if (!status || (model->params->data.F32[1] < 0)) {
 	  psLogMsg ("psphot", 3, "PSF fit failed for %f, %f (%d iterations)\n", x, y, model->nIter);
-	  source->type = PS_SOURCE_FAIL_FIT_PSF;  // better choice?
+	  source->type = PM_SOURCE_FAIL_FIT_PSF;  // better choice?
 	  psFree (model);
 	  continue;
