Index: trunk/psphot/src/psphotSourceSize.c
===================================================================
--- trunk/psphot/src/psphotSourceSize.c	(revision 27695)
+++ trunk/psphot/src/psphotSourceSize.c	(revision 28013)
@@ -33,5 +33,5 @@
 
 // for now, let's store the detections on the readout->analysis for each readout
-bool psphotSourceSize (pmConfig *config, const pmFPAview *view, bool getPSFsize)
+bool psphotSourceSize (pmConfig *config, const pmFPAview *view, const char *filerule, bool getPSFsize)
 {
     bool status = true;
@@ -51,5 +51,5 @@
     for (int i = 0; i < num; i++) {
         if (i == chisqNum) continue; // skip chisq image
-        if (!psphotSourceSizeReadout (config, view, "PSPHOT.INPUT", i, recipe, getPSFsize)) {
+        if (!psphotSourceSizeReadout (config, view, filerule, i, recipe, getPSFsize)) {
             psError (PSPHOT_ERR_CONFIG, false, "failed on source size analysis for PSPHOT.INPUT entry %d", i);
             return false;
@@ -60,5 +60,5 @@
 
 // this function use an internal flag to mark sources which have already been measured
-bool psphotSourceSizeReadout(pmConfig *config, const pmFPAview *view, const char *filename, int index, psMetadata *recipe, bool getPSFsize)
+bool psphotSourceSizeReadout(pmConfig *config, const pmFPAview *view, const char *filerule, int index, psMetadata *recipe, bool getPSFsize)
 {
     bool status;
@@ -68,5 +68,5 @@
 
     // find the currently selected readout
-    pmFPAfile *file = pmFPAfileSelectSingle(config->files, filename, index); // File of interest
+    pmFPAfile *file = pmFPAfileSelectSingle(config->files, filerule, index); // File of interest
     psAssert (file, "missing file?");
 
