IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 13, 2009, 12:47:32 PM (17 years ago)
Author:
giebink
Message:

Account for weight(s) to variance(s) change

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/test/camera/tap_pmFPA.c

    r21220 r21474  
    4646    readout->image = psImageAlloc(TEST_NUM_COLS, TEST_NUM_ROWS, PS_TYPE_F32);
    4747    readout->mask = psImageAlloc(TEST_NUM_COLS, TEST_NUM_ROWS, PS_TYPE_U8);
    48     readout->weight = psImageAlloc(TEST_NUM_COLS, TEST_NUM_ROWS, PS_TYPE_F32);
     48    readout->variance = psImageAlloc(TEST_NUM_COLS, TEST_NUM_ROWS, PS_TYPE_F32);
    4949    for (psS32 i = 0 ; i < NUM_BIAS_DATA ; i++) {
    5050        psImage *tmpImage = psImageAlloc(TEST_NUM_COLS, TEST_NUM_ROWS, PS_TYPE_F32);
     
    183183        pmFPA* fpa = generateSimpleFPA(NULL);
    184184        fpa->hdu->images = psArrayAlloc(10);
    185         fpa->hdu->weights = psArrayAlloc(10);
     185        fpa->hdu->variances = psArrayAlloc(10);
    186186        fpa->hdu->masks = psArrayAlloc(10);
    187187        pmFPAFreeData(fpa);
    188188        ok(fpa->hdu->images == NULL, "pmFPAFreeData() correctly set fpa->hdu->images to NULL");
    189         ok(fpa->hdu->weights == NULL, "pmFPAFreeData() correctly set fpa->hdu->weights to NULL");
     189        ok(fpa->hdu->variances == NULL, "pmFPAFreeData() correctly set fpa->hdu->weights to NULL");
    190190        ok(fpa->hdu->masks == NULL, "pmFPAFreeData() correctly set fpa->hdu->masks to NULL");
    191191        psFree(fpa);
     
    262262        pmChip* chip = generateSimpleChip(NULL);
    263263        chip->hdu->images = psArrayAlloc(10);
    264         chip->hdu->weights = psArrayAlloc(10);
     264        chip->hdu->variances = psArrayAlloc(10);
    265265        chip->hdu->masks = psArrayAlloc(10);
    266266        pmChipFreeData(chip);
    267267        ok(chip->hdu->images == NULL, "pmChipFreeData() correctly set chip->hdu->images to NULL");
    268         ok(chip->hdu->weights == NULL, "pmChipFreeData() correctly set chip->hdu->weights to NULL");
     268        ok(chip->hdu->variances == NULL, "pmChipFreeData() correctly set chip->hdu->weights to NULL");
    269269        ok(chip->hdu->masks == NULL, "pmChipFreeData() correctly set chip->hdu->masks to NULL");
    270270        psFree(chip);
     
    367367        pmCell *cell = generateSimpleCell(NULL);
    368368        cell->hdu->images = psArrayAlloc(10);
    369         cell->hdu->weights = psArrayAlloc(10);
     369        cell->hdu->variances = psArrayAlloc(10);
    370370        cell->hdu->masks = psArrayAlloc(10);
    371371        pmCellFreeData(cell);
    372372        ok(cell->hdu->images == NULL, "pmCellFreeData() correctly set cell->hdu->images to NULL");
    373         ok(cell->hdu->weights == NULL, "pmCellFreeData() correctly set cell->hdu->weights to NULL");
     373        ok(cell->hdu->variances == NULL, "pmCellFreeData() correctly set cell->hdu->weights to NULL");
    374374        ok(cell->hdu->masks == NULL, "pmCellFreeData() correctly set cell->hdu->masks to NULL");
    375375        psFree(cell);
     
    415415        ok(readout->image == NULL, "pmReadoutAlloc() set ->image correctly");
    416416        ok(readout->mask == NULL, "pmReadoutAlloc() set ->mask correctly");
    417         ok(readout->weight == NULL, "pmReadoutAlloc() set ->weight correctly");
     417        ok(readout->variance == NULL, "pmReadoutAlloc() set ->weight correctly");
    418418        ok(readout->bias != NULL &&
    419419           psMemCheckList(readout->bias), "pmReadoutAlloc() set ->bias correctly");
     
    460460        pmReadoutFreeData(readout);
    461461        ok(readout->image == NULL, "pmReadoutFreeData() correctly set readout->image to NULL");
    462         ok(readout->weight == NULL, "pmReadoutFreeData() correctly set readout->weight to NULL");
     462        ok(readout->variance == NULL, "pmReadoutFreeData() correctly set readout->weight to NULL");
    463463        ok(readout->mask == NULL, "pmReadoutFreeData() correctly set readout->mask to NULL");
    464464        psFree(readout);
Note: See TracChangeset for help on using the changeset viewer.