IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 15, 2009, 5:52:15 PM (17 years ago)
Author:
Paul Price
Message:

Adding test code: generate dummy PSF instead of envelope.

File:
1 edited

Legend:

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

    r23192 r25413  
    88
    99#include "ppStack.h"
     10
     11//#define TESTING
    1012
    1113pmPSF *ppStackPSF(const pmConfig *config, int numCols, int numRows,
     
    2830    }
    2931
     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
    3040    // Solve for the target PSF
    3141    pmPSF *psf = pmPSFEnvelope(numCols, numRows, psfs, psfInstances, psfRadius, psfModel,
     
    3545        return NULL;
    3646    }
     47#endif
    3748
    3849    return psf;
Note: See TracChangeset for help on using the changeset viewer.