Index: trunk/psphot/src/psphotFitSourcesLinear.c
===================================================================
--- trunk/psphot/src/psphotFitSourcesLinear.c	(revision 27532)
+++ trunk/psphot/src/psphotFitSourcesLinear.c	(revision 28013)
@@ -13,5 +13,5 @@
 
 // for now, let's store the detections on the readout->analysis for each readout
-bool psphotFitSourcesLinear (pmConfig *config, const pmFPAview *view, bool final)
+bool psphotFitSourcesLinear (pmConfig *config, const pmFPAview *view, const char *filerule, bool final)
 {
     bool status = true;
@@ -28,5 +28,5 @@
 
 	// find the currently selected readout
-	pmFPAfile *file = pmFPAfileSelectSingle(config->files, "PSPHOT.INPUT", i); // File of interest
+	pmFPAfile *file = pmFPAfileSelectSingle(config->files, filerule, i); // File of interest
 	psAssert (file, "missing file?");
 
@@ -44,5 +44,5 @@
 
 	if (!psphotFitSourcesLinearReadout (recipe, readout, sources, psf, final)) {
-            psError (PSPHOT_ERR_CONFIG, false, "failed to fit sources (linear) for PSPHOT.INPUT entry %d", i);
+            psError (PSPHOT_ERR_CONFIG, false, "failed to fit sources (linear) for %s entry %d", filerule, i);
 	    return false;
 	}
