IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27647


Ignore:
Timestamp:
Apr 9, 2010, 4:39:44 PM (16 years ago)
Author:
eugene
Message:

repair cmf creation

Location:
branches/eam_branches/stackphot.20100406/ppSim/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/stackphot.20100406/ppSim/src/ppSimInsertGalaxies.c

    r27630 r27647  
    7474    int dY = PM_CELL_TO_CHIP (0.0, y0Cell, yParityCell, binning);
    7575
    76     pmDetections *detections = psMetadataLookupPtr (readout->analysis, "PSPHOT.DETECTIONS", 0);
     76    pmDetections *detections = psMetadataLookupPtr (&mdok, readout->analysis, "PSPHOT.DETECTIONS");
    7777    if (!detections) {
    7878        detections = pmDetectionsAlloc();
    79         detection->allSources = psArrayAllocEmpty (galaxies->n);
     79        detections->allSources = psArrayAllocEmpty (galaxies->n);
    8080        psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSPHOT.DETECTIONS", PS_DATA_ARRAY | PS_META_REPLACE, "psphot detections", detections);
    8181    } else {
    8282        psMemIncrRefCounter (detections);
    8383    }
    84     psArray *sources = sources = detection->allSources;
     84    psArray *sources = sources = detections->allSources;
    8585
    8686    // add sources to the readout image & weight
  • branches/eam_branches/stackphot.20100406/ppSim/src/ppSimInsertStars.c

    r27630 r27647  
    146146
    147147    pmDetections *detections = pmDetectionsAlloc();
    148     detection->allSources = sources;
     148    detections->allSources = sources;
    149149
    150150    // save detections on the readout->analysis
  • branches/eam_branches/stackphot.20100406/ppSim/src/ppSimUtils.c

    r27630 r27647  
    270270psArray *ppSimSelectSources (pmConfig *config, const pmFPAview *view, const char *filename) {
    271271
     272    bool status;
     273
    272274    pmReadout *readout = pmFPAfileThisReadout (config->files, view, filename);
    273275    PS_ASSERT_PTR_NON_NULL (readout, NULL);
Note: See TracChangeset for help on using the changeset viewer.