IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 13, 2007, 2:00:08 PM (19 years ago)
Author:
eugene
Message:

replaced pmModel.status with pmModel.flags; using bit values instead of ints; names are now of the form PM_MODEL_STATUS_XXX; no error on limit saturation for model parameters

File:
1 edited

Legend:

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

    r12792 r13804  
    1111    }
    1212
    13     // did the model fit fail for one or another reason?
    14     switch (model->status) {
    15       case PM_MODEL_SUCCESS:
    16         break;
    17       case PM_MODEL_UNTRIED:
     13    // was the model actually fitted?
     14    if (!(model->flags & PM_MODEL_STATUS_FITTED)) {
    1815        source->mode &= ~PM_SOURCE_MODE_FITTED;
    1916        return false;
    20       case PM_MODEL_BADARGS:
    21       case PM_MODEL_NONCONVERGE:
    22       case PM_MODEL_OFFIMAGE:
    23       default:
     17    }
     18    // did the model fit fail for one or another reason?
     19    if (model->flags & (PM_MODEL_STATUS_BADARGS |
     20                        PM_MODEL_STATUS_NONCONVERGE |
     21                        PM_MODEL_STATUS_OFFIMAGE)) {
     22        source->mode |= PM_SOURCE_MODE_FAIL;
    2423        psLogMsg ("psphot", 5, "EXT fail fit\n");
    25         source->mode |= PM_SOURCE_MODE_FAIL;
    2624        return false;
    2725    }
Note: See TracChangeset for help on using the changeset viewer.