IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 18323


Ignore:
Timestamp:
Jun 26, 2008, 8:32:23 AM (18 years ago)
Author:
eugene
Message:

do not return an error if no psf is found; just yield no stars

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotChoosePSF.c

    r18039 r18323  
    178178        psFree (stars);
    179179
    180         psError(PSPHOT_ERR_PSF, false, "Failed to fit any models when choosing PSF");
     180        psErrorStackPrint (stderr, "Failed to fit any models when choosing PSF");
     181        psErrorClear();
     182
    181183        bool mdok;                      // Status of MD lookup
    182184        if (!psMetadataLookupBool(&mdok, recipe, PSPHOT_RECIPE_PSF_FAKE_ALLOW)) {
    183185            psFree (modelNames);
    184186            psFree(options);
    185             return false;
    186         }
     187            return NULL;
     188        }
     189
    187190        // generate a psf model using the first selection
    188         psErrorStackPrint (stderr, "Using guess PSF model");
    189         psErrorClear();
     191        psLogMsg ("psphot.pspsf", PS_LOG_INFO, "Using guess PSF model");
    190192
    191193        // unset the PSFSTAR flags (none are used):
Note: See TracChangeset for help on using the changeset viewer.