- Timestamp:
- May 3, 2010, 8:50:52 AM (16 years ago)
- Location:
- branches/simtest_nebulous_branches
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/simtest_nebulous_branches
- Property svn:mergeinfo changed
-
branches/simtest_nebulous_branches/ppSim
-
Property svn:mergeinfo
set to (toggle deleted branches)
/trunk/ppSim merged eligible /branches/eam_branches/stackphot.20100406/ppSim 27629-27654 /branches/pap_delete/ppSim 27530-27595
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
branches/simtest_nebulous_branches/ppSim/src/ppSimInsertGalaxies.c
r18011 r27840 74 74 int dY = PM_CELL_TO_CHIP (0.0, y0Cell, yParityCell, binning); 75 75 76 // psMetadataLookupPtr (readout->analysis, "PSPHOT.SOURCES", 0); 77 78 psArray *sources = psArrayAllocEmpty (galaxies->n); 79 76 pmDetections *detections = psMetadataLookupPtr (&mdok, readout->analysis, "PSPHOT.DETECTIONS"); 77 if (!detections) { 78 detections = pmDetectionsAlloc(); 79 detections->allSources = psArrayAllocEmpty (galaxies->n); 80 psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSPHOT.DETECTIONS", PS_DATA_ARRAY | PS_META_REPLACE, "psphot detections", detections); 81 } else { 82 psMemIncrRefCounter (detections); 83 } 84 psArray *sources = sources = detections->allSources; 80 85 81 86 // add sources to the readout image & weight … … 181 186 } 182 187 183 // NOTE: readout must be part of the pmFPAfile named "PPSIM.OUTPUT"184 // psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSPHOT.SOURCES", PS_DATA_ARRAY | PS_META_REPLACE, "psphot sources", sources);188 // XXX many leaks in here, i think 189 psFree (detections); 185 190 186 // XXX many leaks in here, i think187 191 return true; 188 192 }
Note:
See TracChangeset
for help on using the changeset viewer.
