IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 11, 2007, 11:49:52 AM (18 years ago)
Author:
eugene
Message:

removed over-zealous PS_ASSERTS

File:
1 edited

Legend:

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

    r15562 r15588  
    66 *  @author GLG, MHPCC
    77 *
    8  *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2007-11-10 01:09:20 $
     8 *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2007-11-11 21:49:52 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    119119bool pmSourceFitSetJoin (psVector *deriv, psVector *param, pmSourceFitSetData *set)
    120120{
    121     PS_ASSERT_PTR_NON_NULL(set, false);
    122     PS_ASSERT_PTR_NON_NULL(param, false);
    123 
     121    assert (set);
    124122    assert (set->paramSet->n == set->derivSet->n);
    125123
     
    132130        // one or the other (param or deriv) must be set
    133131        assert ((deriv != NULL) || (param != NULL));
    134         assert ((deriv == NULL) || (param == NULL) || (paramOne->n == derivOne->n));
     132
     133        // if we are setting derive, derivOne and paramOne must be same length
     134        assert ((deriv == NULL) || (paramOne->n == derivOne->n));
    135135       
    136136        for (int j = 0; j < paramOne->n; j++, n++) {
     
    147147
    148148// distribute parameters from single param and deriv vectors into FitSet models
    149 bool pmSourceFitSetSplit (pmSourceFitSetData *set, const psVector *deriv, const psVector *param) {
    150     PS_ASSERT_PTR_NON_NULL(set, false);
    151     PS_ASSERT_PTR_NON_NULL(param, false);
    152 
     149bool pmSourceFitSetSplit (pmSourceFitSetData *set, const psVector *deriv, const psVector *param)
     150{
     151    assert (param);
     152    assert (set);
    153153    assert (set->paramSet->n == set->derivSet->n);
    154154
     
    174174                           psMinimization *myMin, int nPix, bool fitStatus)
    175175{
    176     PS_ASSERT_PTR_NON_NULL(set, false);
     176    assert (set);
    177177    bool onPic = true;
    178178
     
    215215psF32 pmSourceFitSetFunction(psVector *deriv, const psVector *param, const psVector *x)
    216216{
    217     PS_ASSERT_PTR_NON_NULL(thisSet, NAN);
     217    assert (thisSet);
    218218    float chisqSum = 0.0;
    219219    float chisqOne = 0.0;
Note: See TracChangeset for help on using the changeset viewer.