Changeset 6580 for branches/rel10_ifa/psModules/src/astrom/pmFPAConstruct.c
- Timestamp:
- Mar 13, 2006, 6:40:37 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/rel10_ifa/psModules/src/astrom/pmFPAConstruct.c
r6575 r6580 147 147 while ((cellName = psListGetAndIncrement(cellNamesIter))) { 148 148 pmCell *cell = pmCellAlloc(chip, cellName); // New cell 149 pmConceptsReadCell(cell, PM_CONCEPT_SOURCE_DEFAULTS, NULL);150 149 psFree(cell); // Drop reference 151 150 } 152 pmConceptsReadChip(chip, PM_CONCEPT_SOURCE_DEFAULTS, NULL);153 151 psFree(chip); // Drop reference 154 152 psFree(cellNamesIter); 155 153 } 156 154 psFree(componentsIter); 157 pmConceptsReadFPA(fpa, PM_CONCEPT_SOURCE_DEFAULTS, NULL);158 155 159 156 return fpa; … … 166 163 pmCell *cell, // Cell to which to add, or NULL 167 164 psMetadata *phu, // Primary header of file 168 constpsMetadata *format // Format of file165 psMetadata *format // Format of file 169 166 ) 170 167 { … … 192 189 pmHDU *phdu = pmHDUAlloc("PHU"); // The primary header data unit 193 190 phdu->header = psMemIncrRefCounter(phu); 191 phdu->format = psMemIncrRefCounter(format); 194 192 if (fpa && !fpa->hdu && strcasecmp(phuType, "FPA") == 0) { 195 193 fpa->hdu = phdu; 194 pmConceptsReadFPA(fpa, PM_CONCEPT_SOURCE_HEADER, NULL); 196 195 } else if (chip && !chip->hdu && strcasecmp(phuType, "CHIP") == 0) { 197 196 chip->hdu = phdu; 197 pmConceptsReadChip(chip, PM_CONCEPT_SOURCE_HEADER, NULL); 198 198 } else if (cell && !cell->hdu && strcasecmp(phuType, "CELL") == 0) { 199 199 // cell->hdu = phdu; … … 244 244 } 245 245 cell->config = psMemIncrRefCounter(cellData); 246 pmConceptsReadCell(cell, PM_CONCEPT_SOURCE_CAMERA , NULL);246 pmConceptsReadCell(cell, PM_CONCEPT_SOURCE_CAMERA | PM_CONCEPT_SOURCE_DEFAULTS, NULL); 247 247 } 248 248 } … … 295 295 } 296 296 cell->config = psMemIncrRefCounter(cellData); 297 pmConceptsReadCell(cell, PM_CONCEPT_SOURCE_CAMERA , NULL);297 pmConceptsReadCell(cell, PM_CONCEPT_SOURCE_CAMERA | PM_CONCEPT_SOURCE_DEFAULTS, NULL); 298 298 } 299 299 … … 337 337 } 338 338 cell->config = psMemIncrRefCounter(cellData); 339 pmConceptsReadCell(cell, PM_CONCEPT_SOURCE_CAMERA , NULL);339 pmConceptsReadCell(cell, PM_CONCEPT_SOURCE_CAMERA | PM_CONCEPT_SOURCE_DEFAULTS, NULL); 340 340 } 341 341 … … 346 346 } 347 347 psFree(contentsIter); 348 349 pmConceptsReadFPA(fpa, PM_CONCEPT_SOURCE_DEFAULTS, NULL); 348 350 349 351 return true;
Note:
See TracChangeset
for help on using the changeset viewer.
