IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 10853


Ignore:
Timestamp:
Dec 29, 2006, 8:31:11 AM (20 years ago)
Author:
magnier
Message:

minor diff

File:
1 edited

Legend:

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

    r10378 r10853  
    55 *  @author EAM, IfA
    66 *
    7  *  @version $Revision: 1.31 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2006-12-01 19:27:38 $
     7 *  @version $Revision: 1.32 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2006-12-29 18:31:11 $
    99 *
    1010 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    213213
    214214    // linear clipped fit of chisq trend vs flux
    215     psfTry->psf->ChiTrend = psVectorClipFitPolynomial1D(psfTry->psf->ChiTrend, stats, mask, 1, chisq, NULL, flux);
     215    bool result = psVectorClipFitPolynomial1D(psfTry->psf->ChiTrend, stats, mask, 1, chisq, NULL, flux);
    216216    psLogMsg ("pmPSFtry", 4, "chisq vs flux fit: %f +/- %f\n", stats->sampleMedian, stats->sampleStdev);
    217217
     
    221221    psFree (chisq);
    222222
    223     if (psfTry->psf->ChiTrend == NULL) {
     223    if (!result) {
    224224        psError(PS_ERR_UNKNOWN, false, "Failed to fit psf->ChiTrend");
    225225        psFree(psfTry);
     
    274274    poly->mask[1] = 1;
    275275
    276     poly = psVectorClipFitPolynomial1D (poly, stats, psfTry->mask, PSFTRY_MASK_ALL, psfTry->metric, psfTry->metricErr, r2rflux);
    277     if (poly == NULL) {
     276    bool result = psVectorClipFitPolynomial1D (poly, stats, psfTry->mask, PSFTRY_MASK_ALL, psfTry->metric, psfTry->metricErr, r2rflux);
     277    if (!result) {
    278278        psError(PS_ERR_UNKNOWN, false, "Failed to fit clipped poly");
    279279        return false;
Note: See TracChangeset for help on using the changeset viewer.