Changeset 18011 for trunk/ppSim/src/ppSimMakeBias.c
- Timestamp:
- Jun 8, 2008, 4:03:31 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ppSim/src/ppSimMakeBias.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSim/src/ppSimMakeBias.c
r17557 r18011 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; 8 10 9 11 psMetadata *recipe = psMetadataLookupMetadata(NULL, config->recipes, PPSIM_RECIPE); // Recipe 12 13 bool bias = psMetadataLookupBool(&mdok, recipe, "BIAS"); // Generate a Bias? 14 if (!bias) return NULL; 10 15 11 16 float biasLevel = psMetadataLookupF32(NULL, recipe, "BIAS.LEVEL"); // Bias level … … 19 24 if (!mdok) { 20 25 psError(PS_ERR_BAD_PARAMETER_VALUE, false, "Unable to find READNOISE in recipe."); 26 *status = false; 21 27 return NULL; 22 28 }
Note:
See TracChangeset
for help on using the changeset viewer.
