Index: trunk/psphot/src/psphotFindPeaks.c
===================================================================
--- trunk/psphot/src/psphotFindPeaks.c	(revision 6495)
+++ trunk/psphot/src/psphotFindPeaks.c	(revision 6862)
@@ -2,5 +2,5 @@
 
 // 2006.02.02 : no leaks
-psArray *psphotFindPeaks (pmReadout *readout, psMetadata *config) {
+psArray *psphotFindPeaks (pmReadout *readout, psMetadata *recipe) {
 
     bool  status = false;
@@ -12,6 +12,6 @@
     psTimerStart ("psphot");
 
-    SIGMA  = psMetadataLookupF32 (&status, config, "PEAKS_SMOOTH_SIGMA");
-    NSIGMA = psMetadataLookupF32 (&status, config, "PEAKS_SMOOTH_NSIGMA");
+    SIGMA  = psMetadataLookupF32 (&status, recipe, "PEAKS_SMOOTH_SIGMA");
+    NSIGMA = psMetadataLookupF32 (&status, recipe, "PEAKS_SMOOTH_NSIGMA");
 
     psImage *smooth_im = psImageCopy (NULL, readout->image, PS_TYPE_F32);
@@ -37,5 +37,5 @@
 
     // set peak threshold
-    NSIGMA = psMetadataLookupF32 (&status, config, "PEAKS_NSIGMA_LIMIT");
+    NSIGMA = psMetadataLookupF32 (&status, recipe, "PEAKS_NSIGMA_LIMIT");
     // threshold = NSIGMA*sky->sampleStdev + sky->sampleMean; 
     threshold = PS_SQR(NSIGMA);
@@ -49,5 +49,5 @@
 
     // optional dump of all peak data
-    char *output = psMetadataLookupStr (&status, config, "PEAKS_OUTPUT_FILE");
+    char *output = psMetadataLookupStr (&status, recipe, "PEAKS_OUTPUT_FILE");
     if (status && (output != NULL) && (output[0])) {
 	pmPeaksWriteText (peaks, output);
@@ -55,5 +55,5 @@
     psLogMsg ("psphot", 3, "%d peaks: %f sec\n", peaks->n, psTimerMark ("psphot"));
 
-    char *breakPt = psMetadataLookupStr (&status, config, "BREAK_POINT");
+    char *breakPt = psMetadataLookupStr (&status, recipe, "BREAK_POINT");
     if (!strcasecmp (breakPt, "PEAKS")) exit (0);
 
