IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 36089 for trunk/psModules


Ignore:
Timestamp:
Aug 31, 2013, 4:25:05 PM (13 years ago)
Author:
eugene
Message:

oops - fixed error in pmPCMsetParams

File:
1 edited

Legend:

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

    r36085 r36089  
    177177    // set parameter mask based on fitting mode
    178178    int nParams = 0;
     179    int nParAll = constraint->paramMask->n;
    179180
    180181    switch (mode) {
     
    197198      case PM_SOURCE_FIT_EXT:
    198199        // fits all params except sky
    199         nParams = params->n - 1;
     200        nParams = nParAll - 1;
    200201        psVectorInit (constraint->paramMask, 0);
    201202        constraint->paramMask->data.PS_TYPE_VECTOR_MASK_DATA[PM_PAR_SKY] = 1;
     
    204205      case PM_SOURCE_FIT_EXT_AND_SKY:
    205206        // fits all params including sky
    206         nParams = params->n;
     207        nParams = nParAll;
    207208        psVectorInit (constraint->paramMask, 0);
    208209        break;
     
    223224        psVectorInit (constraint->paramMask, 1);
    224225        constraint->paramMask->data.PS_TYPE_VECTOR_MASK_DATA[PM_PAR_I0] = 0;
    225         if (params->n == 7) {
     226        if (nParAll == 7) {
    226227            nParams = 1;
    227228        } else {
     
    234235        // fits all but index (PAR7) including sky
    235236        psVectorInit (constraint->paramMask, 0);
    236         if (params->n == 7) {
    237             nParams = params->n;
     237        if (nParAll == 7) {
     238            nParams = nParAll;
    238239        } else {
    239             nParams = params->n - 1;
     240            nParams = nParAll - 1;
    240241            constraint->paramMask->data.PS_TYPE_VECTOR_MASK_DATA[PM_PAR_7] = 1;
    241242        }
Note: See TracChangeset for help on using the changeset viewer.