Index: branches/eam_branches/psphot.20100506/src/psphotDeblendSatstars.c
===================================================================
--- branches/eam_branches/psphot.20100506/src/psphotDeblendSatstars.c	(revision 27875)
+++ branches/eam_branches/psphot.20100506/src/psphotDeblendSatstars.c	(revision 27909)
@@ -2,5 +2,5 @@
 
 // for now, let's store the detections on the readout->analysis for each readout
-bool psphotDeblendSatstars (pmConfig *config, const pmFPAview *view)
+bool psphotDeblendSatstars (pmConfig *config, const pmFPAview *view, const char *filerule)
 {
     bool status = true;
@@ -11,6 +11,6 @@
     // loop over the available readouts
     for (int i = 0; i < num; i++) {
-	if (!psphotDeblendSatstarsReadout (config, view, "PSPHOT.INPUT", i)) {
-            psError (PSPHOT_ERR_CONFIG, false, "failed on saturated star deblend analysis for PSPHOT.INPUT entry %d", i);
+	if (!psphotDeblendSatstarsReadout (config, view, filerule, i)) {
+            psError (PSPHOT_ERR_CONFIG, false, "failed on saturated star deblend analysis for %s entry %d", filerule, i);
 	    return false;
 	}
@@ -19,5 +19,5 @@
 }
 
-bool psphotDeblendSatstarsReadout (pmConfig *config, const pmFPAview *view, const char *filename, int fileIndex) {
+bool psphotDeblendSatstarsReadout (pmConfig *config, const pmFPAview *view, const char *filerule, int fileIndex) {
 
     int N;
@@ -31,5 +31,5 @@
 
     // find the currently selected readout
-    pmFPAfile *file = pmFPAfileSelectSingle(config->files, filename, fileIndex); // File of interest
+    pmFPAfile *file = pmFPAfileSelectSingle(config->files, filerule, fileIndex); // File of interest
     psAssert (file, "missing file?");
 
