IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 25, 2007, 6:39:48 PM (19 years ago)
Author:
magnier
Message:

fixed model limits in FromPSF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/models/pmModel_QGAUSS.c

    r10272 r11301  
    348348    out[PM_PAR_SXY] = pmPSF_SXYtoModel (out);
    349349
     350    // apply the model limits here: this truncates excessive extrapolation
     351    for (int i = 0; i < psf->params_NEW->n; i++) {
     352        // apply the limits to all components or just the psf-model parameters?
     353        if (psf->params_NEW->data[i] == NULL)
     354            continue;
     355        PM_MODEL_LIMITS (PS_MINIMIZE_PARAM_MIN, i, out, NULL);
     356        PM_MODEL_LIMITS (PS_MINIMIZE_PARAM_MAX, i, out, NULL);
     357    }
     358
    350359    return(true);
    351360}
Note: See TracChangeset for help on using the changeset viewer.