Index: trunk/psphot/src/psphotFindDetections.c
===================================================================
--- trunk/psphot/src/psphotFindDetections.c	(revision 26894)
+++ trunk/psphot/src/psphotFindDetections.c	(revision 28013)
@@ -4,5 +4,5 @@
 // peaks and new footprints.  any old peaks are saved on oldPeaks.  the resulting footprint set
 // contains all footprints (old and new)
-bool psphotFindDetections (pmConfig *config, const pmFPAview *view, bool firstPass)
+bool psphotFindDetections (pmConfig *config, const pmFPAview *view, const char *filerule, bool firstPass)
 {
     bool status = true;
@@ -17,6 +17,6 @@
     // loop over the available readouts
     for (int i = 0; i < num; i++) {
-	if (!psphotFindDetectionsReadout (config, view, "PSPHOT.INPUT", i, recipe, firstPass)) {
-            psError (PSPHOT_ERR_CONFIG, false, "failed to find initial detections for PSPHOT.INPUT entry %d", i);
+	if (!psphotFindDetectionsReadout (config, view, filerule, i, recipe, firstPass)) {
+            psError (PSPHOT_ERR_CONFIG, false, "failed to find initial detections for %s entry %d", filerule, i);
 	    return false;
 	}
@@ -26,5 +26,5 @@
 
 // smooth the image, search for peaks, optionally define footprints based on the peaks
-bool psphotFindDetectionsReadout (pmConfig *config, const pmFPAview *view, const char *filename, int index, psMetadata *recipe, bool firstPass) {
+bool psphotFindDetectionsReadout (pmConfig *config, const pmFPAview *view, const char *filerule, int index, psMetadata *recipe, bool firstPass) {
 
     bool status;
@@ -34,5 +34,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?");
 
