Index: trunk/psphot/src/psphotEfficiency.c
===================================================================
--- trunk/psphot/src/psphotEfficiency.c	(revision 28006)
+++ trunk/psphot/src/psphotEfficiency.c	(revision 28013)
@@ -156,5 +156,5 @@
 }
 
-bool psphotEfficiency (pmConfig *config, const pmFPAview *view)
+bool psphotEfficiency (pmConfig *config, const pmFPAview *view, const char *filerule)
 {
     bool status = true;
@@ -173,7 +173,7 @@
     // loop over the available readouts
     for (int i = 0; i < num; i++) {
-        if (i == chisqNum) continue; // skip chisq image
-        if (!psphotEfficiencyReadout (config, view, "PSPHOT.INPUT", i, recipe)) {
-            psError (PSPHOT_ERR_CONFIG, false, "failed to measure detection efficiency for PSPHOT.INPUT entry %d", i);
+	if (i == chisqNum) continue; // skip chisq image
+	if (!psphotEfficiencyReadout (config, view, filerule, i, recipe)) {
+            psError (PSPHOT_ERR_CONFIG, false, "failed to measure detection efficiency for %s entry %d", filerule, i);
             return false;
         }
@@ -183,5 +183,5 @@
 
 // Determine detection efficiency
-bool psphotEfficiencyReadout(pmConfig *config, const pmFPAview *view, const char *filename, int index, psMetadata *recipe)
+bool psphotEfficiencyReadout(pmConfig *config, const pmFPAview *view, const char *filerule, int index, psMetadata *recipe)
 {
     bool status = true;
@@ -190,5 +190,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?");
 
