- Timestamp:
- Apr 9, 2010, 4:39:44 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/stackphot.20100406/ppSim/src/ppSimInsertGalaxies.c
r27630 r27647 74 74 int dY = PM_CELL_TO_CHIP (0.0, y0Cell, yParityCell, binning); 75 75 76 pmDetections *detections = psMetadataLookupPtr ( readout->analysis, "PSPHOT.DETECTIONS", 0);76 pmDetections *detections = psMetadataLookupPtr (&mdok, readout->analysis, "PSPHOT.DETECTIONS"); 77 77 if (!detections) { 78 78 detections = pmDetectionsAlloc(); 79 detection ->allSources = psArrayAllocEmpty (galaxies->n);79 detections->allSources = psArrayAllocEmpty (galaxies->n); 80 80 psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSPHOT.DETECTIONS", PS_DATA_ARRAY | PS_META_REPLACE, "psphot detections", detections); 81 81 } else { 82 82 psMemIncrRefCounter (detections); 83 83 } 84 psArray *sources = sources = detection ->allSources;84 psArray *sources = sources = detections->allSources; 85 85 86 86 // add sources to the readout image & weight
Note:
See TracChangeset
for help on using the changeset viewer.
