IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13373


Ignore:
Timestamp:
May 14, 2007, 3:39:40 AM (19 years ago)
Author:
rhl
Message:

Assert that all went well, e.g. pmSource classification

File:
1 edited

Legend:

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

    r13034 r13373  
    33 *  @author EAM, IfA; GLG, MHPCC
    44 *
    5  *  @version $Revision: 1.24 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2007-04-26 01:20:29 $
     5 *  @version $Revision: 1.25 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2007-05-14 13:39:40 $
    77 *
    88 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    382382
    383383    const psImage *Pi = Mi->pixels;
     384    assert (Pi != NULL);
    384385    const psImage *Pj = Mj->pixels;
     386    assert (Pj != NULL);
    385387
    386388    const psImage *Wi = Mi->weight;
     389    if (!unweighted_sum) {
     390        assert (Wi != NULL);
     391    }
    387392
    388393    const psImage *Ti = Mi->maskObj;
     394    assert (Ti != NULL);
    389395    const psImage *Tj = Mj->maskObj;
     396    assert (Tj != NULL);
    390397
    391398    Xs = PS_MAX (Pi->col0, Pj->col0);
     
    438445
    439446    const psImage *Pi = Mi->pixels;
     447    assert (Pi != NULL);
    440448    const psImage *Pj = Mj->pixels;
     449    assert (Pj != NULL);
    441450
    442451    const psImage *Wi = Mi->weight;
     452    if (!unweighted_sum) {
     453        assert (Wi != NULL);
     454    }
    443455
    444456    const psImage *Ti = Mi->maskObj;
     457    assert (Ti != NULL);
    445458    const psImage *Tj = Mj->maskObj;
     459    assert (Tj != NULL);
    446460
    447461    Xs = PS_MAX (Pi->col0, Pj->col0);
     
    489503
    490504    const psImage *Pi = Mi->pixels;
     505    assert (Pi != NULL);
    491506    const psImage *Wi = Mi->weight;
     507    if (!unweighted_sum) {
     508        assert (Wi != NULL);
     509    }
    492510    const psImage *Ti = Mi->maskObj;
     511    assert (Ti != NULL);
    493512
    494513    // note that this is addressing the same image pixels,
     
    559578
    560579    const psImage *Pi = Mi->modelFlux;
     580    assert (Pi != NULL);
    561581    const psImage *Wi = Mi->weight;
     582    if (!unweighted_sum) {
     583        assert (Wi != NULL);
     584    }
    562585    const psImage *Ti = Mi->maskObj;
     586    assert (Ti != NULL);
    563587
    564588    for (int yi = 0; yi < Pi->numRows; yi++) {
     
    607631
    608632    const psImage *Pi = Mi->modelFlux;
     633    assert (Pi != NULL);
    609634    const psImage *Pj = Mj->modelFlux;
     635    assert (Pj != NULL);
    610636
    611637    const psImage *Wi = Mi->weight;
     638    if (!unweighted_sum) {
     639        assert (Wi != NULL);
     640    }
    612641
    613642    const psImage *Ti = Mi->maskObj;
     643    assert (Ti != NULL);
    614644    const psImage *Tj = Mj->maskObj;
     645    assert (Tj != NULL);
    615646
    616647    Xs = PS_MAX (Pi->col0, Pj->col0);
     
    663694
    664695    const psImage *Pi = Mi->pixels;
     696    assert (Pi != NULL);
    665697    const psImage *Pj = Mj->modelFlux;
     698    assert (Pj != NULL);
    666699
    667700    const psImage *Wi = Mi->weight;
     701    if (!unweighted_sum) {
     702        assert (Wi != NULL);
     703    }
    668704
    669705    const psImage *Ti = Mi->maskObj;
     706    assert (Ti != NULL);
    670707    const psImage *Tj = Mj->maskObj;
     708    assert (Tj != NULL);
    671709
    672710    Xs = PS_MAX (Pi->col0, Pj->col0);
Note: See TracChangeset for help on using the changeset viewer.