Index: /trunk/psphot/src/psphotReadout.c
===================================================================
--- /trunk/psphot/src/psphotReadout.c	(revision 14345)
+++ /trunk/psphot/src/psphotReadout.c	(revision 14346)
@@ -57,7 +57,4 @@
     psphotMaskReadout (readout, recipe, maskBad);
 
-    // run a single-model test if desired
-    psphotModelTest (config, view, recipe, maskVal, maskMark);
-
     if (psTraceGetLevel("psphot") >= 5) {
         psphotSaveImage (NULL, readout->image,  "image.fits");
@@ -78,4 +75,7 @@
         return psphotReadoutCleanup (config, readout, recipe, NULL, NULL);
     }
+
+    // run a single-model test if desired
+    psphotModelTest (config, view, recipe, maskVal, maskMark);
 
     // find the peaks in the image
