Changeset 15650
- Timestamp:
- Nov 19, 2007, 11:13:15 AM (18 years ago)
- Location:
- trunk/psModules/test/concepts
- Files:
-
- 2 edited
-
tap_pmConceptsAverage.c (modified) (3 diffs)
-
tap_pmConceptsUpdate.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/test/concepts/tap_pmConceptsAverage.c
r14882 r15650 85 85 } 86 86 87 bool rc = pmConfigFileRead(&cell->hdu->format, "../camera/data/camera0/format0.config", "Camera format 0"); 87 // First try to read data from ../dataFiles, then try dataFiles. 88 bool rc = pmConfigFileRead(&cell->hdu->format, "../dataFiles/camera0/format0.config", "Camera format 0"); 88 89 if (!rc) { 89 diag("pmConfigFileRead() was unsuccessful (from generateSimpleCell())"); 90 rc = pmConfigFileRead(&cell->hdu->format, "dataFiles/camera0/format0.config", "Camera format 0"); 91 if (!rc) { 92 diag("pmConfigFileRead() was unsuccessful (from generateSimpleCell())"); 93 } 90 94 } 91 95 … … 123 127 psMetadataAddS32(chip->analysis, PS_LIST_HEAD, MISC_NAME, 0, NULL, MISC_NUM); 124 128 psMetadataAddS32(chip->concepts, PS_LIST_HEAD, MISC_NAME, 0, NULL, MISC_NUM); 125 // chip->hdu = pmHDUAlloc("chipExtName");126 //127 // bool rc = pmConfigFileRead(&chip->hdu->format, "../camera/data/camera0/format0.config", "Camera format 0");128 // if (!rc) {129 // diag("pmConfigFileRead() was unsuccessful (from generateSimpleChip())");130 // }131 //132 129 psArrayRealloc(chip->cells, NUM_CELLS); 133 130 for (int i = 0 ; i < NUM_CELLS ; i++) { … … 154 151 psMetadataAddS32((psMetadata *) fpa->camera, PS_LIST_HEAD, MISC_NAME, 0, NULL, MISC_NUM); 155 152 psMetadataAddS32(fpa->concepts, PS_LIST_HEAD, MISC_NAME, 0, NULL, MISC_NUM); 156 // fpa->hdu = pmHDUAlloc("fpaExtName");157 //158 // bool rc = pmConfigFileRead(&fpa->hdu->format, "../camera/data/camera0/format0.config", "Camera format 0");159 // if (!rc) {160 // diag("pmConfigFileRead() was unsuccessful (from generateSimpleFPA())");161 // }162 163 153 psArrayRealloc(fpa->chips, NUM_CHIPS); 164 154 for (int i = 0 ; i < NUM_CHIPS ; i++) { -
trunk/psModules/test/concepts/tap_pmConceptsUpdate.c
r14882 r15650 84 84 } 85 85 86 bool rc = pmConfigFileRead(&cell->hdu->format, "../camera/data/camera0/format0.config", "Camera format 0"); 86 // First try to read data from ../dataFiles, then try dataFiles. 87 bool rc = pmConfigFileRead(&cell->hdu->format, "../dataFiles/camera0/format0.config", "Camera format 0"); 87 88 if (!rc) { 88 diag("pmConfigFileRead() was unsuccessful (from generateSimpleCell())"); 89 rc = pmConfigFileRead(&cell->hdu->format, "dataFiles/camera0/format0.config", "Camera format 0"); 90 if (!rc) { 91 diag("pmConfigFileRead() was unsuccessful (from generateSimpleCell())"); 92 } 89 93 } 90 94 … … 122 126 psMetadataAddS32(chip->analysis, PS_LIST_HEAD, MISC_NAME, 0, NULL, MISC_NUM); 123 127 psMetadataAddS32(chip->concepts, PS_LIST_HEAD, MISC_NAME, 0, NULL, MISC_NUM); 124 // chip->hdu = pmHDUAlloc("chipExtName");125 //126 // bool rc = pmConfigFileRead(&chip->hdu->format, "../camera/data/camera0/format0.config", "Camera format 0");127 // if (!rc) {128 // diag("pmConfigFileRead() was unsuccessful (from generateSimpleChip())");129 // }130 //131 128 psArrayRealloc(chip->cells, NUM_CELLS); 132 129 for (int i = 0 ; i < NUM_CELLS ; i++) { … … 153 150 psMetadataAddS32((psMetadata *) fpa->camera, PS_LIST_HEAD, MISC_NAME, 0, NULL, MISC_NUM); 154 151 psMetadataAddS32(fpa->concepts, PS_LIST_HEAD, MISC_NAME, 0, NULL, MISC_NUM); 155 // fpa->hdu = pmHDUAlloc("fpaExtName");156 //157 // bool rc = pmConfigFileRead(&fpa->hdu->format, "../camera/data/camera0/format0.config", "Camera format 0");158 // if (!rc) {159 // diag("pmConfigFileRead() was unsuccessful (from generateSimpleFPA())");160 // }161 152 162 153 psArrayRealloc(fpa->chips, NUM_CHIPS);
Note:
See TracChangeset
for help on using the changeset viewer.
