IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 19, 2009, 11:45:11 AM (17 years ago)
Author:
Paul Price
Message:

Noticed that the TIMESYS wouldn't necessarily be updated just because we alter it in the format process for a TIME. To remedy this, force it to be written after updating. Reworked the concepts writing so that conceptsWrite() provides the iteration, while the other functions write a single entry only. This allows a new function, pmConceptWriteSingle(), which is used to update the TIMESYS.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPAfileFitsIO.c

    r22699 r23428  
    183183          }
    184184
    185           pmConceptSource sources = PM_CONCEPT_SOURCE_HEADER | PM_CONCEPT_SOURCE_CELLS |
    186               PM_CONCEPT_SOURCE_DEFAULTS | PM_CONCEPT_SOURCE_DATABASE; // Concept sources to write
    187185          if (cell) {
    188               if (!pmConceptsWriteCell(cell, sources, true, config)) {
     186              if (!pmConceptsWriteCell(cell, true, config)) {
    189187                  psError(PS_ERR_IO, false, "Unable to write concepts for cell.\n");
    190188                  return false;
    191189              }
    192190          } else if (chip) {
    193               if (!pmConceptsWriteChip(chip, sources, true, true, config)) {
     191              if (!pmConceptsWriteChip(chip, true, true, config)) {
    194192                  psError(PS_ERR_IO, false, "Unable to write concepts for chip.\n");
    195193                  return false;
    196194              }
    197           } else if (!pmConceptsWriteFPA(fpa, sources, true, config)) {
     195          } else if (!pmConceptsWriteFPA(fpa, true, config)) {
    198196              psError(PS_ERR_IO, false, "Unable to write concepts for FPA.\n");
    199197              return false;
Note: See TracChangeset for help on using the changeset viewer.