Index: /branches/eam_branches/ipp-20220316/fpcamera/doc/notes.txt
===================================================================
--- /branches/eam_branches/ipp-20220316/fpcamera/doc/notes.txt	(revision 42219)
+++ /branches/eam_branches/ipp-20220316/fpcamera/doc/notes.txt	(revision 42219)
@@ -0,0 +1,9 @@
+
+psphotSetHeaderNstars : counts N_STARS and writes to a header metadata
+
+psphotReadoutCleanup:
+  psphotPSFstatsSources : measure stats for PSF model (e.g., FWHM_MAJ) [readout->analysis]
+  psphotMomentsStats    : measure stats based on 2nd moments           [readout->analysis]
+  psphotSetHeaderNstars : count stars (& subsets)                      [PSPHOT.HEADER]
+  psphotDefineHeader    : moves the values from readout->analysis to PSPHOT.HEADER
+  
Index: /branches/eam_branches/ipp-20220316/fpcamera/src/fpcameraDataSave.c
===================================================================
--- /branches/eam_branches/ipp-20220316/fpcamera/src/fpcameraDataSave.c	(revision 42218)
+++ /branches/eam_branches/ipp-20220316/fpcamera/src/fpcameraDataSave.c	(revision 42219)
@@ -65,5 +65,5 @@
 
     // Write out summary statistics
-    // XXX fix : if (!fpcameraMetadataStats (config, stats)) ESCAPE(FPCAMERA_ERR_UNKNOWN, "failure to save state in Metadata");
+    if (!fpcameraMetadataStats (config, stats)) ESCAPE(FPCAMERA_ERR_UNKNOWN, "failure to save state in Metadata");
 
     psString dump_file = psMetadataLookupStr(&status, config->arguments, "DUMP_CONFIG");
