IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 8436


Ignore:
Timestamp:
Aug 21, 2006, 4:52:02 AM (20 years ago)
Author:
rhl
Message:

Handle psVectorClipFitPolynomial1D failing without a SEGV; PR 806

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/pmPSFtry.c

    r8133 r8436  
    55 *  @author EAM, IfA
    66 *
    7  *  @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2006-08-04 12:25:20 $
     7 *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2006-08-21 14:52:02 $
    99 *
    1010 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    261261    psPolynomial1D *poly = psPolynomial1DAlloc (PS_POLYNOMIAL_ORD, 1);
    262262    poly = psVectorClipFitPolynomial1D (poly, stats, psfTry->mask, PSFTRY_MASK_ALL, psfTry->metric, NULL, r2rflux);
     263    if (poly == NULL) {
     264        psError(PS_ERR_UNKNOWN, false, "Failed to fit clipped poly");
     265        return false;
     266    }
    263267    psLogMsg ("pmPSFtryMetric", 4, "fit stats: %f +/- %f\n", stats->sampleMedian, stats->sampleStdev);
    264268
Note: See TracChangeset for help on using the changeset viewer.