Changeset 9410 for trunk/psModules/src/config/pmConfig.c
- Timestamp:
- Oct 9, 2006, 10:18:58 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/config/pmConfig.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/config/pmConfig.c
r8815 r9410 3 3 * @author PAP, IfA 4 4 * 5 * @version $Revision: 1.4 3$ $Name: not supported by cvs2svn $6 * @date $Date: 2006- 09-15 09:49:01$5 * @version $Revision: 1.44 $ $Name: not supported by cvs2svn $ 6 * @date $Date: 2006-10-09 20:18:58 $ 7 7 * 8 8 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 35 35 psFree(config->files); 36 36 psFree(config->camera); 37 psFree(config->cameraName); 37 38 psFree(config->recipes); 38 39 psFree(config->recipesSource); … … 49 50 config->site = NULL; 50 51 config->camera = NULL; 52 config->cameraName = NULL; 51 53 config->recipes = psMetadataAlloc(); 52 54 config->recipesRead = P_PM_RECIPE_SOURCE_NONE; … … 578 580 if (formatFromHeader(&format, testCamera, header, camerasItem->name)) { 579 581 config->camera = psMemIncrRefCounter(testCamera); 582 config->cameraName = psStringCopy(camerasItem->name); 580 583 } 581 584 psFree(testCamera); … … 595 598 596 599 // Otherwise, try the specific camera 597 if (!formatFromHeader(&format, config->camera, header, "specified camera")) {598 psError(PS_ERR_IO, true, "Unable to find a format with the specified camera that matches the "599 "given header.\n" );600 if (!formatFromHeader(&format, config->camera, header, config->cameraName)) { 601 psError(PS_ERR_IO, true, "Unable to find a format with the specified camera (%s) that matches the " 602 "given header.\n", config->cameraName); 600 603 return NULL; 601 604 } … … 603 606 } 604 607 605 // Work out what camera we have, based on the FITS header and a set of rules specified in the IPP 606 // configuration; return the camera configuration and format 608 // Return the requested camera configuration 607 609 psMetadata *pmConfigCameraByName( 608 610 pmConfig *config, // The configuration
Note:
See TracChangeset
for help on using the changeset viewer.
