IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30155


Ignore:
Timestamp:
Dec 24, 2010, 3:10:19 PM (15 years ago)
Author:
eugene
Message:

save a reference to the original sources in psf try sources

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20101205/psModules/src/objects/pmPSFtry.c

    r29004 r30155  
    8484
    8585    for (int i = 0; i < sources->n; i++) {
    86         test->sources->data[i] = pmSourceCopy (sources->data[i]);
     86        pmSource *sourceOld = sources->data[i];
     87        pmSource *sourceNew = pmSourceCopy (sourceOld);
     88
     89        // save a reference so we can get back to the original
     90        // this is specifically used in psphotChooosePSF to unflag the candidate PSF sources
     91        // which were not actually used to generate a PSF model
     92        sourceNew->parent = sourceOld;
     93
     94        test->sources->data[i] = sourceNew;
    8795    }
    8896
Note: See TracChangeset for help on using the changeset viewer.