IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 15, 2008, 12:01:36 PM (18 years ago)
Author:
eugene
Message:

working on getting the input image options right

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20080511/ppSim/src/ppSimMakeBias.c

    r17672 r17702  
    11# include "ppSim.h"
    22
    3 psVector *ppSimMakeBias (pmReadout *readout, pmConfig *config, const psRandom *rng) {
     3psVector *ppSimMakeBias (bool *status, pmReadout *readout, pmConfig *config, const psRandom *rng) {
    44
    55    bool mdok;
     6
     7    if (status) *status = true;
    68
    79    pmCell *cell = readout->parent;
     
    911    psMetadata *recipe = psMetadataLookupMetadata(NULL, config->recipes, PPSIM_RECIPE); // Recipe
    1012
    11     bool bias = psMetadataLookupBool(&status, recipe, "BIAS"); // Generate a Bias?
    12     if (!bias) return true;
     13    bool bias = psMetadataLookupBool(&mdok, recipe, "BIAS"); // Generate a Bias?
     14    if (!bias) return NULL;
    1315
    1416    float biasLevel = psMetadataLookupF32(NULL, recipe, "BIAS.LEVEL"); // Bias level
     
    2224        if (!mdok) {
    2325            psError(PS_ERR_BAD_PARAMETER_VALUE, false, "Unable to find READNOISE in recipe.");
     26            *status = false;
    2427            return NULL;
    2528        }
Note: See TracChangeset for help on using the changeset viewer.