Index: trunk/psphot/src/psphotParseCamera.c
===================================================================
--- trunk/psphot/src/psphotParseCamera.c	(revision 10437)
+++ trunk/psphot/src/psphotParseCamera.c	(revision 10554)
@@ -74,11 +74,12 @@
 
     // Chip selection: turn on only the chips specified (pass status to suppress missing-key log msg)
-    // XXX why not put this in the recipe?
-    char *chipLine = psMetadataLookupStr(&status, config->arguments, "CHIP_SELECTIONS");
+    char *chipLine = psMetadataLookupStr(&status, recipe, "CHIP_SELECTIONS");
     psArray *chips = psStringSplitArray (chipLine, ",", false);
     if (chips->n > 0) {
+	// select on the basis of extname?
 	pmFPASelectChip (input->fpa, -1, true); // deselect all chips
 	for (int i = 0; i < chips->n; i++) {
 	    int chipNum = atoi(chips->data[i]);
+	    fprintf (stderr, "select chip %d\n", chipNum);
 	    if (! pmFPASelectChip(input->fpa, chipNum, false)) {
 		psError(PS_ERR_IO, false, "Chip number %d doesn't exist in camera.\n", chipNum);
