Changeset 17702 for branches/eam_branch_20080511/ppSim/src/ppSimMakeBias.c
- Timestamp:
- May 15, 2008, 12:01:36 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20080511/ppSim/src/ppSimMakeBias.c
r17672 r17702 1 1 # include "ppSim.h" 2 2 3 psVector *ppSimMakeBias ( pmReadout *readout, pmConfig *config, const psRandom *rng) {3 psVector *ppSimMakeBias (bool *status, pmReadout *readout, pmConfig *config, const psRandom *rng) { 4 4 5 5 bool mdok; 6 7 if (status) *status = true; 6 8 7 9 pmCell *cell = readout->parent; … … 9 11 psMetadata *recipe = psMetadataLookupMetadata(NULL, config->recipes, PPSIM_RECIPE); // Recipe 10 12 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; 13 15 14 16 float biasLevel = psMetadataLookupF32(NULL, recipe, "BIAS.LEVEL"); // Bias level … … 22 24 if (!mdok) { 23 25 psError(PS_ERR_BAD_PARAMETER_VALUE, false, "Unable to find READNOISE in recipe."); 26 *status = false; 24 27 return NULL; 25 28 }
Note:
See TracChangeset
for help on using the changeset viewer.
