IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 20, 2024, 2:37:06 PM (2 years ago)
Author:
eugene
Message:

merge from trunk: ifdef-out the ppSubCamera fix until final tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20230313/ppSub/src/ppSubCamera.c

    r42527 r42631  
    570570    checkFileruleFileSave(jpeg3, config);
    571571
     572# if (0)
     573    // XXX NOTE EAM 20240209: This block of code attempts to correct the problem of missing
     574    // PSCAMERA entries, in this case in the output kernel definition.  This seems to work, but
     575    // there was a crash related to running psphot in update mode.  This block is probably not
     576    // responsible for the crash, but is commented out for the moment
     577
    572578    // The reference sources may not be from the same origin as the reference image, so
    573579    // use another temporary camera.
    574580    pmConfig *kernel_config = pmConfigMakeTemp(config);
    575 
     581   
    576582    // Output subtraction kernel
    577583    pmFPAfile *kernel = defineCalcFile(kernel_config, output, "PPSUB.OUTPUT.KERNELS", "KERNEL", PM_FPA_FILE_SUBKERNEL);
    578584    if (!kernel) {
    579         psError(PS_ERR_UNEXPECTED_NULL, false, "Unable to define file PPSUB.OUTPUT.KERNELS");
    580         return false;
     585        psError(PS_ERR_UNEXPECTED_NULL, false, "Unable to define file PPSUB.OUTPUT.KERNELS");
     586        return false;
    581587    }
    582588
     
    584590    ppSubCopyPSCamera (kernel, input);
    585591    psFree (kernel_config);
     592# else
     593    // XXX NOTE EAM 20240209: This block of code matches the older version used in ipp-ps1-20220906-gentoo
     594
     595    // Output subtraction kernel
     596    pmFPAfile *kernel = defineCalcFile(config, output, "PPSUB.OUTPUT.KERNELS", "KERNEL", PM_FPA_FILE_SUBKERNEL);
     597    if (!kernel) {
     598        psError(PS_ERR_UNEXPECTED_NULL, false, "Unable to define file PPSUB.OUTPUT.KERNELS");
     599        return false;
     600    }
     601# endif
    586602
    587603    // psPhot input
    588604    if (data->photometry || 1) {
    589         psphotModelClassInit();        // load implementation-specific models
     605        psphotModelClassInit();        // load implementation-specific models
    590606
    591607        pmFPAfile *psphot = pmFPAfileDefineFromFPA(config, output->fpa, 1, 1, "PSPHOT.INPUT");
Note: See TracChangeset for help on using the changeset viewer.