- Timestamp:
- Feb 20, 2024, 2:37:06 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20230313/ppSub/src/ppSubCamera.c
r42527 r42631 570 570 checkFileruleFileSave(jpeg3, config); 571 571 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 572 578 // The reference sources may not be from the same origin as the reference image, so 573 579 // use another temporary camera. 574 580 pmConfig *kernel_config = pmConfigMakeTemp(config); 575 581 576 582 // Output subtraction kernel 577 583 pmFPAfile *kernel = defineCalcFile(kernel_config, output, "PPSUB.OUTPUT.KERNELS", "KERNEL", PM_FPA_FILE_SUBKERNEL); 578 584 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; 581 587 } 582 588 … … 584 590 ppSubCopyPSCamera (kernel, input); 585 591 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 586 602 587 603 // psPhot input 588 604 if (data->photometry || 1) { 589 psphotModelClassInit(); // load implementation-specific models605 psphotModelClassInit(); // load implementation-specific models 590 606 591 607 pmFPAfile *psphot = pmFPAfileDefineFromFPA(config, output->fpa, 1, 1, "PSPHOT.INPUT");
Note:
See TracChangeset
for help on using the changeset viewer.
