Index: branches/eam_branches/ipp-20100823/psphot/src/psphotModelTest.c
===================================================================
--- branches/eam_branches/ipp-20100823/psphot/src/psphotModelTest.c	(revision 29218)
+++ branches/eam_branches/ipp-20100823/psphot/src/psphotModelTest.c	(revision 29230)
@@ -226,5 +226,5 @@
     // measure the source mags
     pmSourcePhotometryModel (&fitMag, model);
-    pmSourcePhotometryAper  (&obsMag, model, source->pixels, source->maskObj, maskVal);
+    pmSourcePhotometryAper  (&obsMag, NULL, NULL, model, source->pixels, source->variance, source->maskObj, maskVal);
     fprintf (stderr, "ap: %f, fit: %f, apmifit: %f, nIter: %d\n", obsMag, fitMag, obsMag - fitMag, model->nIter);
 
Index: branches/eam_branches/ipp-20100823/psphot/src/psphotSourceStats.c
===================================================================
--- branches/eam_branches/ipp-20100823/psphot/src/psphotSourceStats.c	(revision 29218)
+++ branches/eam_branches/ipp-20100823/psphot/src/psphotSourceStats.c	(revision 29230)
@@ -418,5 +418,5 @@
 	    
 	    float apMag = NAN;
-	    pmSourcePhotometryAper (&apMag, NULL, source->pixels, source->maskObj, maskVal);
+	    pmSourcePhotometryAper (&apMag, NULL, NULL, NULL, source->pixels, source->variance, source->maskObj, maskVal);
 	    fprintf (stderr, "apMag: %f, kronMag: %f\n", apMag, -2.5*log10(source->moments->KronFlux));
 
