Index: trunk/psphot/src/psphotExtendedSourceFits.c
===================================================================
--- trunk/psphot/src/psphotExtendedSourceFits.c	(revision 26894)
+++ trunk/psphot/src/psphotExtendedSourceFits.c	(revision 28013)
@@ -2,5 +2,5 @@
 
 // for now, let's store the detections on the readout->analysis for each readout
-bool psphotExtendedSourceFits (pmConfig *config, const pmFPAview *view)
+bool psphotExtendedSourceFits (pmConfig *config, const pmFPAview *view, const char *filerule)
 {
     bool status = true;
@@ -21,6 +21,6 @@
     // loop over the available readouts
     for (int i = 0; i < num; i++) {
-	if (!psphotExtendedSourceFitsReadout (config, view, "PSPHOT.INPUT", i, recipe)) {
-            psError (PSPHOT_ERR_CONFIG, false, "failed on to fit extended sources for PSPHOT.INPUT entry %d", i);
+	if (!psphotExtendedSourceFitsReadout (config, view, filerule, i, recipe)) {
+            psError (PSPHOT_ERR_CONFIG, false, "failed on to fit extended sources for %s entry %d", filerule, i);
 	    return false;
 	}
@@ -30,5 +30,5 @@
 
 // non-linear model fitting for extended sources
-bool psphotExtendedSourceFitsReadout (pmConfig *config, const pmFPAview *view, const char *filename, int index, psMetadata *recipe) {
+bool psphotExtendedSourceFitsReadout (pmConfig *config, const pmFPAview *view, const char *filerule, int index, psMetadata *recipe) {
 
     bool status;
@@ -41,5 +41,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?");
 
