IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 18, 2009, 9:43:36 AM (17 years ago)
Author:
eugene
Message:

sigmaCell and countsCell needed to get the concepts from outCell: why did this work before?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppMerge/src/ppMergeLoop.c

    r18757 r21139  
    254254                psFree(countsRO);
    255255
     256                // XXX EAM 2009.01.18 : sigmaCell and countsCell need to have their concepts copied from outCell.
     257                // This was causing segfaults for VYSOS5; Why did this ever work for SIMTEST?
     258                if (!pmConceptsCopyCell(countsCell, outCell)) {
     259                    psError(PS_ERR_UNKNOWN, false, "Unable to copy cell concepts.");
     260                    psFree(outRO);
     261                    goto ERROR;
     262                }
     263
    256264                pmCell *sigmaCell = pmFPAfileThisCell(config->files, view, "PPMERGE.OUTPUT.SIGMA");
    257265                pmReadout *sigmaRO = pmReadoutAlloc(sigmaCell); // Readout with stdev per pixel
     
    261269                sigmaRO->data_exists = sigmaCell->data_exists = sigmaCell->parent->data_exists = true;
    262270                psFree(sigmaRO);
     271
     272                if (!pmConceptsCopyCell(sigmaCell, outCell)) {
     273                    psError(PS_ERR_UNKNOWN, false, "Unable to copy cell concepts.");
     274                    psFree(outRO);
     275                    goto ERROR;
     276                }
    263277            }
    264278
Note: See TracChangeset for help on using the changeset viewer.