IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 2, 2008, 8:01:04 PM (18 years ago)
Author:
eugene
Message:

remove modelConv, add modelFits

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20080324/psModules/src/objects/pmSource.c

    r17275 r17308  
    66 *  @author EAM, IfA: significant modifications.
    77 *
    8  *  @version $Revision: 1.51.2.1 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2008-04-02 21:16:16 $
     8 *  @version $Revision: 1.51.2.2 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2008-04-03 06:01:04 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    5050    psFree(tmp->modelPSF);
    5151    psFree(tmp->modelEXT);
    52     psFree(tmp->modelConv);
     52    psFree(tmp->modelFits);
    5353    psFree(tmp->blends);
    5454    psTrace("psModules.objects", 5, "---- end ----\n");
     
    107107    source->modelPSF = NULL;
    108108    source->modelEXT = NULL;
    109     source->modelConv = NULL;
     109    source->modelFits = NULL;
    110110    source->type = PM_SOURCE_TYPE_UNKNOWN;
    111111    source->mode = PM_SOURCE_MODE_DEFAULT;
     
    947947        return model;
    948948
    949 // XXX when should I return the modelConv ??
     949        // the 'best' extended model is saved in source->modelEXT (may be a pointer to one of
     950        // the elements of source->modelFits)
    950951      case PM_SOURCE_TYPE_EXTENDED:
    951         model = source->modelConv;
    952         if (!model) {
    953             model = source->modelEXT;
    954         }
     952        model = source->modelEXT;
    955953        if (!model && source->modelPSF) {
     954            // XXX raise an error or warning here?
    956955            if (isPSF) {
    957956                *isPSF = true;
Note: See TracChangeset for help on using the changeset viewer.