IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 12601


Ignore:
Timestamp:
Mar 27, 2007, 9:05:13 AM (19 years ago)
Author:
eugene
Message:

asserts to PS_ASSERTs

Location:
trunk/psphot/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotMagnitudes.c

    r12592 r12601  
    1313    pmSourceMagnitudesInit (recipe);
    1414
    15     // XXX require (assert) that we have a background model, or
     15    // XXX require that we have a background model, or
    1616    // allow it to be missing, setting local sky to 0.0?
    17 
    18     // Get enough information to return sky level
    19     assert(background != NULL);
     17    PS_ASSERT (background, false);
    2018
    2119    // the binning details are saved on the analysis metadata
    2220    psImageBinning *binning = psMetadataLookupPtr(&status, recipe, "PSPHOT.BACKGROUND.BINNING");
    23     assert (status == true);
     21    PS_ASSERT (status, false);
    2422
    2523    bool IGNORE_GROWTH = psMetadataLookupBool (&status, recipe, "IGNORE_GROWTH");
  • trunk/psphot/src/psphotOutput.c

    r12546 r12601  
    8181
    8282    pmFPAfile *input = psMetadataLookupPtr (&status, config->files, "PSPHOT.INPUT");
    83     assert (status);
     83    PS_ASSERT (status, false);
    8484
    8585    // determine PHOTCODE from fpa & view, overwrite in recipe
    86     // XXX test this:
    8786    char *photcode = pmConceptsPhotcodeForView (config, input, view);
    88     assert (photcode);
     87    PS_ASSERT (photcode, false);
    8988
    9089    psMetadataAddStr (recipe, PS_LIST_TAIL, "PHOTCODE", PS_META_REPLACE, "photcode from FPA concepts", photcode);
  • trunk/psphot/src/psphotSourceFits.c

    r11702 r12601  
    363363    // use the source moments, etc to guess basic model parameters
    364364    pmModel *EXT = pmSourceModelGuess (source, modelTypeEXT);
    365     assert (EXT != NULL);
     365    PS_ASSERT (EXT, NULL);
    366366       
    367367    // if (isnan(EXT->params->data.F32[1])) psAbort("nan in ext fit");
Note: See TracChangeset for help on using the changeset viewer.