IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13843


Ignore:
Timestamp:
Jun 14, 2007, 5:08:07 PM (19 years ago)
Author:
eugene
Message:

added more information to test function

File:
1 edited

Legend:

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

    r11454 r13843  
    6161            if (fpa->hdu->masks) fprintf (stderr, "  (%d,%d) masks\n", -1, -1);
    6262            if (fpa->hdu->header) fprintf (stderr, "  (%d,%d) header\n", -1, -1);
    63             continue;
    64         }
    65         fprintf (stderr, "  has no fpa data (%d,%d)\n", -1, -1);
     63        } else {
     64            // fprintf (stderr, "  has no fpa data (%d,%d)\n", -1, -1);
     65        }
    6666        for (int i = 0; i < fpa->chips->n; i++) {
    6767            pmChip *chip = fpa->chips->data[i];
     
    7171                if (chip->hdu->masks) fprintf (stderr, "  (%d,%d) masks\n", i, -1);
    7272                if (chip->hdu->header) fprintf (stderr, "  (%d,%d) header\n", i, -1);
    73                 continue;
    74             }
    75             fprintf (stderr, "  has no chip data (%d,%d)\n", i, -1);
     73            } else {
     74                // fprintf (stderr, "  has no chip data (%d,%d)\n", i, -1);
     75            }
    7676            for (int j = 0; j < chip->cells->n; j++) {
    7777                pmCell *cell = chip->cells->data[j];
     
    8181                    if (cell->hdu->masks) fprintf (stderr, "  (%d,%d) masks\n", i, j);
    8282                    if (cell->hdu->header) fprintf (stderr, "  (%d,%d) header\n", i, j);
    83                     continue;
    84                 }
    85                 fprintf (stderr, "  has no cell data (%d,%d)\n", i, j);
     83                } else {
     84                    // fprintf (stderr, "  has no cell data (%d,%d)\n", i, j);
     85                }
     86                for (int k = 0; k < cell->readouts->n; k++) {
     87                    pmReadout *readout = cell->readouts->data[k];
     88                    if (readout) {
     89                        if (readout->image) fprintf (stderr, "  (%d,%d,%d) image\n", i, j, k);
     90                        if (readout->weight) fprintf (stderr, "  (%d,%d,%d) weight\n", i, j, k);
     91                        if (readout->mask) fprintf (stderr, "  (%d,%d,%d) masks\n", i, j, k);
     92                    }
     93                }
    8694            }
    8795        }
Note: See TracChangeset for help on using the changeset viewer.