Index: trunk/psphot/src/psphotModelTest.c
===================================================================
--- trunk/psphot/src/psphotModelTest.c	(revision 12792)
+++ trunk/psphot/src/psphotModelTest.c	(revision 13035)
@@ -2,4 +2,5 @@
 static char DEFAULT_MODE[] = "EXT";
 
+// XXX consider this function : add more test information?
 bool psphotModelTest (pmReadout *readout, psMetadata *recipe) {
 
@@ -158,5 +159,5 @@
 
     // define the pixels used for the fit
-    psImageKeepCircle (source->mask, xObj, yObj, RADIUS, "OR", PM_MASK_MARK);
+    psImageKeepCircle (source->maskObj, xObj, yObj, RADIUS, "OR", PM_MASK_MARK);
 
     char *fitset = psMetadataLookupStr (&status, recipe, "TEST_FIT_SET");
@@ -170,5 +171,5 @@
     // measure the source mags
     pmSourcePhotometryModel (&fitMag, model);
-    pmSourcePhotometryAper  (&obsMag, model, source->pixels, source->mask);
+    pmSourcePhotometryAper  (&obsMag, model, source->pixels, source->maskObj);
     fprintf (stderr, "ap: %f, fit: %f, apmifit: %f\n", obsMag, fitMag, obsMag - fitMag);
 
@@ -177,5 +178,5 @@
 
     // subtract object, leave local sky
-    pmModelSub (source->pixels, source->mask, model, false, false);
+    pmModelSub (source->pixels, source->maskObj, model, PM_MODEL_OP_FULL);
 
     fprintf (stderr, "output parameters: \n");
@@ -186,5 +187,5 @@
     // write out
     psphotSaveImage (NULL, source->pixels, "resid.fits");
-    psphotSaveImage (NULL, source->mask, "mask.fits");
+    psphotSaveImage (NULL, source->maskObj, "mask.fits");
 
     exit (0);
