IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 22, 2007, 5:26:42 PM (19 years ago)
Author:
Paul Price
Message:

Bit more testing functionality.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppImage/src/ppTest.c

    r11270 r12566  
    9999//////////////////////////////////////////////////////////////////////////////////////////////////////////////
    100100
    101     pmFPAPrint(stdout, fpa, false, true);
     101#if 0
     102    pmFPAPrint(stdout, fpa, false, false);
    102103    exit(0);
    103 
     104#endif
    104105
    105106#if 0
     
    118119#if 1
    119120    psArray *chips = fpa->chips;
    120     pmFPAWrite(fpa, outFile, NULL, false, false);
     121    pmFPAWrite(fpa, outFile, NULL, true, false);
    121122    for (int i = 0; i < chips->n; i++) {
    122         printf("Chip %d\n", i);
    123123        pmChip *chip = chips->data[i];
    124124#if 1
    125125        //pmChipRead(chip, inFile, NULL);
    126         pmChipWrite(chip, outFile, NULL, false, false);
     126        pmChipWrite(chip, outFile, NULL, true, false);
    127127        psArray *cells = chip->cells;
    128128        for (int j = 0; j < cells->n; j++) {
    129129            pmCell *cell = cells->data[j];
    130             pmCellWrite(cell, outFile, NULL, false);
     130            pmCellWrite(cell, outFile, NULL, true);
    131131#if 0 // Read bit by bit
    132132            pmReadout *readout = pmReadoutAlloc(cell);
     
    140140            psFree(readout);
    141141#else // Read the whole cell at once
    142             pmCellRead(cell, inFile, NULL);
    143             pmCellWrite(cell, outFile, NULL, true);
     142            //            pmCellRead(cell, inFile, NULL);
     143            //            pmCellWrite(cell, outFile, NULL, false);
     144            //            pmCellFreeData(cell);
    144145#endif
    145146        }
     147        pmChipWrite(chip, outFile, NULL, false, false);
    146148#endif
    147149
     
    153155#endif
    154156    }
     157    pmFPAWrite(fpa, outFile, NULL, false, false);
    155158#endif
    156159
     
    166169
    167170#if 1
    168     pmFPAPrint(stdout, fpa, true, true);
     171    pmFPAPrint(stdout, fpa, false, false);
    169172#endif
    170173
Note: See TracChangeset for help on using the changeset viewer.