IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 17, 2007, 11:01:59 AM (19 years ago)
Author:
magnier
Message:

substantial cleanups of APIs:

changed pmModelGroup to pmModelClass

dropped the _GetFunctions, and moved the modelClass-specific functions
to functions pointers in the pmModel structure. These are assigned
when the model is allocated, based on the model type. Now, instead of
calling, for example,

modelFunc = pmModelFunc_GetFunctions(model->type)
modelFunc();

you just do:

model->modelFunc()

moved some of the support functions into pmModelUtils and
pmSourceUtils.

changed pmIsFooBar to pmFooBarTest for better api listing.

added functions to evaluate and add/subtract models applying an offset
between the image coordinate frame and the chip frame (required frame
for model parameters)

added function(s) to instatiate a pmModel from a pmPSF based on a
given coordinate and peak flux.

added a function to set the model normalization based on a source flux
value.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20070817/psModules/test/objects/tst_pmObjects01.c

    r6511 r14544  
    3131    most of psObjects.c is not tested
    3232 *
    33  *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
    34  *  @date $Date: 2006-03-04 01:01:34 $
     33 *  @version $Revision: 1.8.16.1 $ $Name: not supported by cvs2svn $
     34 *  @date $Date: 2007-08-17 21:01:59 $
    3535 *
    3636 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    186186    //
    187187    psS32 i = 0;
    188     while (0 != pmModelParameterCount(i)) {
    189         printf("Testing pmModelAlloc(%s)...\n", pmModelGetType(0));
     188    while (0 != pmModelClassParameterCount(i)) {
     189        printf("Testing pmModelAlloc(%s)...\n", pmModelClassGetName(0));
    190190        pmModel *tmpModel = pmModelAlloc(i);
    191191        if (tmpModel == NULL) {
    192             printf("TEST ERROR: pmModelAlloc(%s) returned a NULL pmModel\n", pmModelGetType(0));
     192            printf("TEST ERROR: pmModelAlloc(%s) returned a NULL pmModel\n", pmModelClassGetName(0));
    193193            testStatus = false;
    194194        } else {
Note: See TracChangeset for help on using the changeset viewer.