Index: branches/eam_branches/psphot.20100506/src/psphotSourceFreePixels.c
===================================================================
--- branches/eam_branches/psphot.20100506/src/psphotSourceFreePixels.c	(revision 27875)
+++ branches/eam_branches/psphot.20100506/src/psphotSourceFreePixels.c	(revision 27909)
@@ -1,5 +1,5 @@
 # include "psphotInternal.h"
 
-bool psphotSourceFreePixels (pmConfig *config, const pmFPAview *view)
+bool psphotSourceFreePixels (pmConfig *config, const pmFPAview *view, const char *filerule)
 {
     bool status = true;
@@ -10,6 +10,6 @@
     // loop over the available readouts
     for (int i = 0; i < num; i++) {
-	if (!psphotSourceFreePixelsReadout (config, view, "PSPHOT.INPUT", i)) {
-            psError (PSPHOT_ERR_CONFIG, false, "failed to free source pixels for PSPHOT.INPUT entry %d", i);
+	if (!psphotSourceFreePixelsReadout (config, view, filerule, i)) {
+            psError (PSPHOT_ERR_CONFIG, false, "failed to free source pixels for %s entry %d", filerule, i);
 	    return false;
 	}
@@ -18,10 +18,10 @@
 }
 
-bool psphotSourceFreePixelsReadout(pmConfig *config, const pmFPAview *view, const char *filename, int index) {
+bool psphotSourceFreePixelsReadout(pmConfig *config, const pmFPAview *view, const char *filerule, int index) {
 
     bool status;
 
     // 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?");
 
