Index: trunk/ppSim/src/ppSim.h
===================================================================
--- trunk/ppSim/src/ppSim.h	(revision 14670)
+++ trunk/ppSim/src/ppSim.h	(revision 14797)
@@ -32,4 +32,5 @@
 // Type of image to simulate
 typedef enum {
+    PPSIM_TYPE_NONE,                    // No type set
     PPSIM_TYPE_BIAS,                    // Bias image
     PPSIM_TYPE_DARK,                    // Dark image
@@ -68,6 +69,6 @@
 /// Parse command-line arguments
 void ppSimArguments(int argc, char *argv[], ///< Command-line arguments
-		    pmConfig *config ///< Configuration
-		    );
+                    pmConfig *config ///< Configuration
+                    );
 
 /// Create output file
@@ -75,18 +76,18 @@
 /// Returns a borrowed pointer to the FPA file.
 pmFPAfile *ppSimCreate(pmConfig *config ///< Configuration
-		       );
+                       );
 
 // Return bounds of a chip, based on the concepts
 psRegion *ppSimChipBounds(const pmChip *chip, // Chip for which to determine size
-			  pmFPAview *view // View for chip
-			  );
+                          pmFPAview *view // View for chip
+                          );
 
 // Return bounds of an FPA, based on the concepts
 psRegion *ppSimFPABounds(const pmFPA *fpa       // FPA for which to determine size
-			 );
+                         );
 
 /// Loop over the output file, generating simulated data
 bool ppSimLoop(pmConfig *config ///< Configuration
-		 );
+                 );
 
 psVector *ppSimMakeBiassec (pmCell *cell, pmConfig *config);
@@ -100,10 +101,10 @@
 
 bool ppSimInitHeader(pmConfig *config,
-		     pmFPA *fpa,
-		     pmChip *chip,
-		     pmCell *cell);
+                     pmFPA *fpa,
+                     pmChip *chip,
+                     pmCell *cell);
 
-bool ppSimSaturate(pmReadout *readout,	// Image to apply saturation
-		   const pmConfig *config); // Saturation level
+bool ppSimSaturate(pmReadout *readout,  // Image to apply saturation
+                   const pmConfig *config); // Saturation level
 
 bool ppSimUpdateConceptsFPA (pmFPA *fpa, pmConfig *config);
@@ -113,8 +114,8 @@
 
 bool ppSimAddNoise(psImage *signal,
-		   psImage *variance,
-		   const pmCell *cell,		       
-		   const pmConfig *config,		       
-		   const psRandom *rng // Random number generator
+                   psImage *variance,
+                   const pmCell *cell,
+                   const pmConfig *config,
+                   const psRandom *rng // Random number generator
     );
 
Index: trunk/ppSim/src/ppSimArguments.c
===================================================================
--- trunk/ppSim/src/ppSimArguments.c	(revision 14670)
+++ trunk/ppSim/src/ppSimArguments.c	(revision 14797)
@@ -77,5 +77,5 @@
         usage(argv[0], arguments, config);
     }
- 
+
     if (!psArgumentParse(arguments, &argc, argv)) { usage (argv[0], arguments, config); }
 
@@ -84,5 +84,5 @@
     psString formatName = psMetadataLookupStr(NULL, arguments, "-format"); // Name of format
     if (formatName) {
-	// XXX delay the config below until ppSimCreate?
+        // XXX delay the config below until ppSimCreate?
         config->formatName = psMemIncrRefCounter(formatName);
 
@@ -109,5 +109,5 @@
         usage(argv[0], arguments, config);
     }
-    ppSimType type;                     // Type to simulate
+    ppSimType type = PPSIM_TYPE_NONE;   // Type to simulate
     if (strcasecmp(typeStr, "BIAS") == 0) {
         type = PPSIM_TYPE_BIAS;
@@ -122,4 +122,5 @@
         usage(argv[0], arguments, config);
     }
+    assert(type != PPSIM_TYPE_NONE);
     psMetadataAddS32(config->arguments, PS_LIST_TAIL, "TYPE", 0, "Exposure type", type);
 
@@ -200,6 +201,6 @@
 
 
-	const char *psfClass = psMetadataLookupStr(NULL, arguments, "-psfclass"); // Filter name
-	psMetadataAddStr(config->arguments, PS_LIST_TAIL, "PSF.MODEL", 0, "PSF model class", psfClass);
+        const char *psfClass = psMetadataLookupStr(NULL, arguments, "-psfclass"); // Filter name
+        psMetadataAddStr(config->arguments, PS_LIST_TAIL, "PSF.MODEL", 0, "PSF model class", psfClass);
     }
 
