Changeset 11242
- Timestamp:
- Jan 22, 2007, 5:18:21 PM (19 years ago)
- Location:
- trunk/psModules/src/camera
- Files:
-
- 2 edited
-
pmFPAfileDefine.c (modified) (5 diffs)
-
pmFPAfileIO.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPAfileDefine.c
r11226 r11242 267 267 psArray *infiles = psMetadataLookupPtr(&status, config->arguments, argname); 268 268 if (!status) { 269 // psTrace("psModules.camera", 5, "Failed to find %s in argument list", argname);270 269 psError(PS_ERR_UNEXPECTED_NULL, false, "Failed to find %s in argument list", argname); 271 270 return NULL; … … 326 325 return NULL; 327 326 } 327 file->format = format; 328 328 329 329 // adjust the rules to identify these files in the file->names data … … 373 373 return NULL; 374 374 } 375 if (!pmConfigValidateCameraFormat (format, phu)) { 375 bool valid = false; 376 if (!pmConfigValidateCameraFormat (&valid, format, phu)) { 377 psError (PS_ERR_UNKNOWN, false, "Error in config scripts\n"); 378 psFree (realName); 379 psFitsClose (fits); 380 return NULL; 381 } 382 if (!valid) { 376 383 psError(PS_ERR_IO, false, "file %s is not from the required camera", realName); 377 384 psFree (realName); … … 404 411 } 405 412 psFree (fpa); 406 407 file->format = format;408 413 if (found) 409 414 *found = true; … … 492 497 return NULL; 493 498 } 494 if (!pmConfigValidateCameraFormat (input->format, phu)) { 499 bool valid = false; 500 if (!pmConfigValidateCameraFormat (&valid, input->format, phu)) { 501 psError (PS_ERR_UNKNOWN, false, "Error in config scripts\n"); 502 psFree (realName); 503 psFitsClose (fits); 504 return NULL; 505 } 506 if (!valid) { 495 507 psError(PS_ERR_IO, false, "specified data file %s does not match format of supplied INPUT\n", realName); 496 508 psFree (realName); -
trunk/psModules/src/camera/pmFPAfileIO.c
r10966 r11242 89 89 } 90 90 } else { 91 pmConfigValidateCameraFormat (file->format, phu); 91 bool valid; 92 if (!pmConfigValidateCameraFormat (&valid, file->format, phu)) { 93 psError (PS_ERR_UNKNOWN, false, "Error in config scripts\n"); 94 psFree (phu); 95 return NULL; 96 } 97 if (!valid) { 98 psError(PS_ERR_IO, false, "file %s is not from the required camera", file->filename); 99 psFree (phu); 100 return NULL; 101 } 92 102 } 93 103 pmFPAview *thisView = pmFPAAddSourceFromHeader (file->fpa, phu, file->format);
Note:
See TracChangeset
for help on using the changeset viewer.
