IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16908


Ignore:
Timestamp:
Mar 10, 2008, 10:58:20 AM (18 years ago)
Author:
Paul Price
Message:

Checking and clearing errors in trying a model.

File:
1 edited

Legend:

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

    r16820 r16908  
    142142    for (int i = 0; i < modelNames->n; i++) {
    143143        char *modelName = modelNames->data[i];
    144         models->data[i] = pmPSFtryModel (stars, modelName, options, maskVal, mark);
     144        pmPSFtry *try = pmPSFtryModel (stars, modelName, options, maskVal, mark); // Attempt at fit
     145        if (!try) {
     146            // No big deal --- we'll try another model
     147            psErrorClear();
     148            continue;
     149        }
     150        models->data[i] = try;
    145151    }
    146152
Note: See TracChangeset for help on using the changeset viewer.