Changeset 23259 for trunk/ppSim
- Timestamp:
- Mar 10, 2009, 4:53:42 PM (17 years ago)
- Location:
- trunk/ppSim/src
- Files:
-
- 3 edited
-
ppSimBadPixels.c (modified) (1 diff)
-
ppSimLoop.c (modified) (1 diff)
-
ppSimSequence.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSim/src/ppSimBadPixels.c
r20910 r23259 74 74 } 75 75 76 psRandom *pseudoRNG = psRandomAlloc (PS_RANDOM_TAUS, seed); // Pseudo-random number generator76 psRandom *pseudoRNG = psRandomAllocSpecific(PS_RANDOM_TAUS, seed); // Pseudo-random number generator 77 77 78 78 psImage *image = readout->image; // Image of interest -
trunk/ppSim/src/ppSimLoop.c
r21365 r23259 25 25 psMetadata *recipe = psMetadataLookupMetadata(NULL, config->recipes, PPSIM_RECIPE); // Recipe 26 26 27 psRandom *rng = psRandomAlloc(PS_RANDOM_TAUS , 0); // Random number generator27 psRandom *rng = psRandomAlloc(PS_RANDOM_TAUS); // Random number generator 28 28 29 29 char *typeStr = psMetadataLookupStr(NULL, recipe, "IMAGE.TYPE"); // Type of image to simulate -
trunk/ppSim/src/ppSimSequence.c
r19315 r23259 133 133 if (ppsim_recipe) psStringAppend (&ppSimCommand, " -recipe PPSIM %s", ppsim_recipe); 134 134 135 unsigned long seed = psMetadataLookupS32 (&status, config, "RND_SEED"); 136 if (!status) seed = 0; 137 psRandom *rng = psRandomAlloc(PS_RANDOM_TAUS, seed); 135 psRandom *rng = psRandomAlloc(PS_RANDOM_TAUS); 138 136 139 137 psMetadataItem *item = psMetadataLookup (config, "SEQUENCE"); 140 138 if (item == NULL) { 141 139 psLogMsg ("ppSimSequence", PS_LOG_WARN, "missing SEQUENCE description"); 142 exit ( 1);140 exit (PS_EXIT_CONFIG_ERROR); 143 141 } 144 142 … … 170 168 } 171 169 172 // determine the camera for the sequence and define the ppSim command173 if (camera == NULL) {174 camera = psMetadataLookupStr (&status, sequence, "CAMERA");175 }176 177 psString injectCommandReal = NULL;178 psString ppSimCommandReal = NULL;179 180 psStringAppend (&injectCommandReal, "%s --camera %s", injectCommand, camera);181 psStringAppend (&ppSimCommandReal, "%s -camera %s", ppSimCommand, camera);170 // determine the camera for the sequence and define the ppSim command 171 if (camera == NULL) { 172 camera = psMetadataLookupStr (&status, sequence, "CAMERA"); 173 } 174 175 psString injectCommandReal = NULL; 176 psString ppSimCommandReal = NULL; 177 178 psStringAppend (&injectCommandReal, "%s --camera %s", injectCommand, camera); 179 psStringAppend (&ppSimCommandReal, "%s -camera %s", ppSimCommand, camera); 182 180 183 181 if (!strcasecmp (type, "BIAS")) {
Note:
See TracChangeset
for help on using the changeset viewer.
