IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 37771


Ignore:
Timestamp:
Dec 24, 2014, 8:51:59 AM (12 years ago)
Author:
eugene
Message:

handle a bug in fullforce with unassigned models

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-20141119/psModules/src/objects/pmSourceIO_CMF.c.in

    r37710 r37771  
    319319
    320320    // define PSF model type
    321     int modelType = pmModelClassGetType ("PS_MODEL_GAUSS");
     321    int defaultModelType = pmModelClassGetType ("PS_MODEL_GAUSS");
     322    int modelType = -1;
    322323
    323324    // if header does not define the model, default to a gaussian
     
    326327        modelType = pmModelClassGetType (PSF_NAME);
    327328    }
    328     assert (modelType > -1);
     329    // work around bug in psphotFullForce
     330    if (modelType < 0) {
     331        modelType = defaultModelType;
     332    }
     333    // assert (modelType > -1);
    329334
    330335    // do we expect to find lensing parameters?
Note: See TracChangeset for help on using the changeset viewer.