Index: branches/eam_branches/psphot.stack.20100120/src/psphotEfficiency.c
===================================================================
--- branches/eam_branches/psphot.stack.20100120/src/psphotEfficiency.c	(revision 26688)
+++ branches/eam_branches/psphot.stack.20100120/src/psphotEfficiency.c	(revision 26691)
@@ -6,4 +6,6 @@
 //#define TESTING
 
+
+# if 0
 
 // Calculate the limiting magnitude for an image
@@ -148,4 +150,5 @@
 }
 
+# endif
 
 bool psphotEfficiency (pmConfig *config, const pmFPAview *view)
@@ -157,10 +160,10 @@
     psAssert (recipe, "missing recipe?");
 
-    int num = psMetadataAddS32 (&status, config->arguments, "PSPHOT.INPUT.NUM");
+    int num = psMetadataLookupS32 (&status, config->arguments, "PSPHOT.INPUT.NUM");
     psAssert (status, "programming error: must define PSPHOT.INPUT.NUM");
 
     // loop over the available readouts
     for (int i = 0; i < num; i++) {
-	if (!psphotReadout (config, view, "PSPHOT.INPUT", i, recipe)) {
+	if (!psphotEfficiencyReadout (config, view, "PSPHOT.INPUT", i, recipe)) {
             psError (PSPHOT_ERR_CONFIG, false, "failed on saturated star deblend analysis for PSPHOT.INPUT entry %d", i);
 	    return false;
@@ -173,9 +176,12 @@
 bool psphotEfficiencyReadout(pmConfig *config, const pmFPAview *view, const char *filename, int index, psMetadata *recipe)
 {
+# if 0
+    bool status = true;
+
     psTimerStart("psphot.fake");
 
     // find the currently selected readout
     pmFPAfile *file = pmFPAfileSelectSingle(config->files, filename, index); // File of interest
-    psAssert (readout, "missing file?");
+    psAssert (file, "missing file?");
 
     pmReadout *readout = pmFPAviewThisReadout(view, file->fpa);
@@ -512,4 +518,5 @@
     psLogMsg("psphot", PS_LOG_INFO, "Detection efficiency: %lf sec\n", psTimerClear("psphot.fake"));
 
+# endif
 
     return true;
