IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 10011


Ignore:
Timestamp:
Nov 15, 2006, 3:45:50 PM (20 years ago)
Author:
magnier
Message:

fixed bug, added error check

File:
1 edited

Legend:

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

    r9886 r10011  
    55 *  @author EAM, IfA
    66 *
    7  *  @version $Revision: 1.25 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2006-11-07 09:14:00 $
     7 *  @version $Revision: 1.26 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2006-11-16 01:45:50 $
    99 *
    1010 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    382382        // select the per-object fitted data for this parameter
    383383        for (int j = 0; j < psfTry->sources->n; j++) {
    384             pmSource *source = psfTry->sources->data[i];
     384            pmSource *source = psfTry->sources->data[j];
    385385            if (source->modelEXT == NULL)
    386386                continue;
     
    394394            }
    395395        }
    396         psf->params_NEW->data[i] = psVectorClipFitPolynomial2D(psf->params_NEW->data[i], stats, psfTry->mask, 0xff, z, dz, x, y);
     396        // XXX does psfTry->mask need to be init to 0 and set to 1 above?
     397        if (!psVectorClipFitPolynomial2D(psf->params_NEW->data[i], stats, psfTry->mask, 0xff, z, dz, x, y)) {
     398            psError(PS_ERR_UNKNOWN, false, "failed to build psf model for parameter %d", i);
     399            return false;
     400        }
    397401        // psTrace ("psphot.psftest", 3, "keeping %d of %d PSF candidates (PSF param %d)\n", Nkeep, psfTry->mask->n, i);
    398402    }
Note: See TracChangeset for help on using the changeset viewer.