IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 15, 2009, 6:02:12 PM (17 years ago)
Author:
Paul Price
Message:

Fix compilation error when TESTING.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStack/src/ppStackPSF.c

    r25413 r25414  
    1414                  const psArray *psfs, const psVector *inputMask)
    1515{
     16#ifndef TESTING
    1617    // Get the recipe values
    1718    psMetadata *recipe = psMetadataLookupMetadata(NULL, config->recipes, PPSTACK_RECIPE); // ppStack recipe
     
    3031    }
    3132
    32 #ifdef TESTING
    33     // Dummy PSF
    34     pmPSF *psf = pmPSFBuildSimple("PS_MODEL_GAUSS", 7.0, 7.0, 0.0);
    35     if (!psf) {
    36         psError(PS_ERR_UNKNOWN, false, "Unable to build dummy PSF.");
    37         return NULL;
    38     }
    39 #else
    4033    // Solve for the target PSF
    4134    pmPSF *psf = pmPSFEnvelope(numCols, numRows, psfs, psfInstances, psfRadius, psfModel,
     
    4538        return NULL;
    4639    }
     40#else
     41    // Dummy PSF
     42    pmPSF *psf = pmPSFBuildSimple("PS_MODEL_GAUSS", 7.0, 7.0, 0.0);
     43    if (!psf) {
     44        psError(PS_ERR_UNKNOWN, false, "Unable to build dummy PSF.");
     45        return NULL;
     46    }
    4747#endif
    4848
Note: See TracChangeset for help on using the changeset viewer.