IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 4, 2009, 11:07:14 AM (17 years ago)
Author:
Paul Price
Message:

Wasn't triggering the writing of covariance matrices.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap_branch_20090128/psModules/src/camera/pmFPAWrite.c

    r21270 r21287  
    500500    PS_ASSERT_PTR_NON_NULL(cell, false);
    501501    PS_ASSERT_PTR_NON_NULL(fits, false);
    502     return cellWrite(cell, fits, config, blank, FPA_WRITE_TYPE_VARIANCE);
     502    if (!cellWrite(cell, fits, config, blank, FPA_WRITE_TYPE_VARIANCE)) {
     503        return false;
     504    }
     505    if (!pmCellWriteCovariance(fits, cell)) {
     506        return false;
     507    }
     508    return true;
    503509}
    504510
     
    507513    PS_ASSERT_PTR_NON_NULL(chip, false);
    508514    PS_ASSERT_PTR_NON_NULL(fits, false);
    509     return chipWrite(chip, fits, config, blank, recurse, FPA_WRITE_TYPE_VARIANCE);
     515    if (!chipWrite(chip, fits, config, blank, recurse, FPA_WRITE_TYPE_VARIANCE)) {
     516        return false;
     517    }
     518    if (!pmChipWriteCovariance(fits, chip)) {
     519        return false;
     520    }
     521    return true;
    510522}
    511523
     
    514526    PS_ASSERT_PTR_NON_NULL(fpa, false);
    515527    PS_ASSERT_PTR_NON_NULL(fits, false);
    516     return fpaWrite(fpa, fits, config, blank, recurse, FPA_WRITE_TYPE_VARIANCE);
     528    if (!fpaWrite(fpa, fits, config, blank, recurse, FPA_WRITE_TYPE_VARIANCE)) {
     529        return false;
     530    }
     531    if (!pmFPAWriteCovariance(fits, fpa)) {
     532        return false;
     533    }
     534    return true;
    517535}
    518536
Note: See TracChangeset for help on using the changeset viewer.