IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 23, 2007, 12:41:52 PM (19 years ago)
Author:
Paul Price
Message:

Bug fixes and small improvements to get it working properly. Seems to work OK now, but hasn't been tested rigourously.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStack/src/ppStackLoop.c

    r13464 r13489  
    3030    }
    3131
    32     pmFPAfile *output = psMetadataLookupPtr(NULL, config->files, "PPSTACK.OUTPUT"); // Output file
    33     if (!output) {
    34         psError(PS_ERR_UNEXPECTED_NULL, false, "Can't find output data!\n");
     32    pmFPAfile *input = psMetadataLookupPtr(NULL, config->files, "PPSTACK.INPUT"); // Token input file
     33    if (!input) {
     34        psError(PS_ERR_UNEXPECTED_NULL, false, "Can't find input data!\n");
    3535        return false;
    3636    }
     
    4545
    4646    pmChip *chip;                       // Chip of interest
    47     while ((chip = pmFPAviewNextChip(view, output->fpa, 1)) != NULL) {
     47    while ((chip = pmFPAviewNextChip(view, input->fpa, 1)) != NULL) {
    4848        if (!pmFPAfileIOChecks(config, view, PM_FPA_BEFORE)) {
    4949            return false;
     
    5151
    5252        pmCell *cell;                // Cell of interest
    53         while ((cell = pmFPAviewNextCell(view, output->fpa, 1)) != NULL) {
     53        while ((cell = pmFPAviewNextCell(view, input->fpa, 1)) != NULL) {
    5454            if (!pmFPAfileIOChecks(config, view, PM_FPA_BEFORE)) {
    5555                return false;
     
    6767
    6868            pmReadout *readout;         // Readout of interest
    69             while ((readout = pmFPAviewNextReadout(view, output->fpa, 1))) {
     69            while ((readout = pmFPAviewNextReadout(view, input->fpa, 1))) {
    7070                if (!pmFPAfileIOChecks(config, view, PM_FPA_BEFORE)) {
    7171                    return false;
     
    8585            // Perform statistics on the cell
    8686            if (stats) {
    87                 ppStats(stats, output->fpa, view, config);
     87                ppStats(stats, input->fpa, view, config);
    8888            }
    8989
Note: See TracChangeset for help on using the changeset viewer.