IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 29, 2007, 2:59:23 PM (19 years ago)
Author:
gusciora
Message:

Adding several changes to the objects directory. Most of these changes are
mere additions of PS_ASSERTs to the beginning of psModule functions to ensure
that input parameters are correct.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20071023/psModules/src/objects/pmPSFtry.c

    r15254 r15418  
    55 *  @author EAM, IfA
    66 *
    7  *  @version $Revision: 1.49 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2007-10-09 19:26:25 $
     7 *  @version $Revision: 1.49.2.1 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2007-10-30 00:59:23 $
    99 *
    1010 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    8181}
    8282
     83bool psMemCheckPSFtry(psPtr ptr)
     84{
     85    PS_ASSERT_PTR(ptr, false);
     86    return ( psMemGetDeallocator(ptr) == (psFreeFunc) pmPSFtryFree);
     87}
     88
     89
    8390// build a pmPSFtry for the given model:
    8491// - fit each source with the free-floating model
     
    249256bool pmPSFtryMetric (pmPSFtry *psfTry, float RADIUS)
    250257{
     258    PS_ASSERT_PTR_NON_NULL(psfTry, false);
     259    PS_ASSERT_PTR_NON_NULL(psfTry->sources, false);
     260
    251261    // the measured (aperture - fit) magnitudes (dA == psfTry->metric)
    252262    //   depend on both the true ap-fit (dAo) and the bias in the sky measurement:
     
    346356bool pmPSFFromPSFtry (pmPSFtry *psfTry)
    347357{
     358    PS_ASSERT_PTR_NON_NULL(psfTry, false);
     359    PS_ASSERT_PTR_NON_NULL(psfTry->sources, false);
     360
    348361    pmPSF *psf = psfTry->psf;
    349362
Note: See TracChangeset for help on using the changeset viewer.