Index: trunk/psphot/src/psphotReadoutCleanup.c
===================================================================
--- trunk/psphot/src/psphotReadoutCleanup.c	(revision 27657)
+++ trunk/psphot/src/psphotReadoutCleanup.c	(revision 28013)
@@ -2,5 +2,5 @@
 
 // for now, let's store the detections on the readout->analysis for each readout
-bool psphotReadoutCleanup (pmConfig *config, const pmFPAview *view)
+bool psphotReadoutCleanup (pmConfig *config, const pmFPAview *view, const char *filerule)
 {
     bool status = true;
@@ -24,6 +24,6 @@
     // loop over the available readouts
     for (int i = 0; i < num; i++) {
-	if (!psphotReadoutCleanupReadout (config, view, "PSPHOT.INPUT", i, recipe)) {
-            psError (PSPHOT_ERR_CONFIG, false, "failed on psphotReadoutCleanup for PSPHOT.INPUT entry %d", i);
+	if (!psphotReadoutCleanupReadout (config, view, filerule, i, recipe)) {
+            psError (PSPHOT_ERR_CONFIG, false, "failed on psphotReadoutCleanup for %s entry %d", filerule, i);
 	    return false;
 	}
@@ -39,10 +39,10 @@
 // not a DATA error, then there was a serious problem.  Only in this case, or if the fail
 // on the stats measurement, do we return false
-bool psphotReadoutCleanupReadout (pmConfig *config, const pmFPAview *view, const char *filename, int index, psMetadata *recipe) {
+bool psphotReadoutCleanupReadout (pmConfig *config, const pmFPAview *view, const char *filerule, int index, psMetadata *recipe) {
 
     bool status = true;
 
     // 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?");
 
