IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 2, 2008, 10:39:04 AM (18 years ago)
Author:
gusciora
Message:

Removed pmSourceTest() and added some PS_ASSERTS.

File:
1 edited

Legend:

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

    r15562 r15980  
    33 *  @author EAM, IfA
    44 *
    5  *  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2007-11-10 01:09:20 $
     5 *  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2008-01-02 20:39:04 $
    77 *
    88 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    6969
    7070        // no difference between PSF and non-PSF model
    71         pmModel *model = pmSourceGetModel (NULL, source);
     71        pmModel *model = pmSourceGetModel(NULL, source);
    7272
    7373        if (model != NULL) {
     
    8181            axes = pmPSF_ModelToAxes (PAR, 20.0);
    8282        } else {
     83            // XXX: This code seg faults if source->peak is NULL.
    8384            xPos = source->peak->xf;
    8485            yPos = source->peak->yf;
     
    168169    psArray *table = psFitsReadTable (fits);
    169170    // validate a single row of the table (must match SMP)
    170 
     171    // XXX: The following seg-faults if table returns NULL, so I added the ASSERT
     172    PS_ASSERT_PTR_NON_NULL(table, NULL);
    171173    psArray *sources = psArrayAlloc (table->n);
    172174
Note: See TracChangeset for help on using the changeset viewer.