IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 15, 2006, 3:03:49 PM (20 years ago)
Author:
eugene
Message:

substantial work on the image loop, support for DetDB

File:
1 edited

Legend:

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

    r7531 r7581  
    1717
    1818    // files associated with the science image
    19     pmFPAfileIOChecks (config->files, view, PM_FPA_BEFORE);
     19    if (!pmFPAfileIOChecks (config, view, PM_FPA_BEFORE)) return false;
    2020
    2121    while ((chip = pmFPAviewNextChip (view, input->fpa, 1)) != NULL) {
    2222        psLogMsg ("ppImageLoop", 4, "Chip %d: %x %x\n", view->chip, chip->file_exists, chip->process);
    2323        if (!chip->process || !chip->file_exists) { continue; }
    24         pmFPAfileIOChecks (config->files, view, PM_FPA_BEFORE);
     24        if (!pmFPAfileIOChecks (config, view, PM_FPA_BEFORE)) return false;
    2525
    2626        while ((cell = pmFPAviewNextCell (view, input->fpa, 1)) != NULL) {
    2727            psLogMsg ("ppImageLoop", 4, "Cell %d: %x %x\n", view->cell, cell->file_exists, cell->process);
    2828            if (!cell->process || !cell->file_exists) { continue; }
    29             pmFPAfileIOChecks (config->files, view, PM_FPA_BEFORE);
     29            if (!pmFPAfileIOChecks (config, view, PM_FPA_BEFORE)) return false;
    3030
    3131            // process each of the readouts
    3232            while ((readout = pmFPAviewNextReadout (view, input->fpa, 1)) != NULL) {
    33                 pmFPAfileIOChecks (config->files, view, PM_FPA_BEFORE);
    34                 if (! readout->data_exists) { continue; }
     33                if (!pmFPAfileIOChecks (config, view, PM_FPA_BEFORE)) return false;
     34                if (!readout->data_exists) { continue; }
    3535
    3636                // perform the detrend analysis
     
    4040                if (options->doBin2) ppImageRebinReadout (config, view, "PPIMAGE.BIN2");
    4141
    42                 pmFPAfileIOChecks (config->files, view, PM_FPA_AFTER);
     42                if (!pmFPAfileIOChecks (config, view, PM_FPA_AFTER)) return false;
    4343            }
    44             pmFPAfileIOChecks (config->files, view, PM_FPA_AFTER);
     44            if (!pmFPAfileIOChecks (config, view, PM_FPA_AFTER)) return false;
    4545        }
    4646
     
    5050        if (options->doPhotom) ppImagePhotom (config, view);
    5151
    52         pmFPAfileIOChecks (config->files, view, PM_FPA_AFTER);
     52        if (!pmFPAfileIOChecks (config, view, PM_FPA_AFTER)) return false;
    5353
    5454        // XXX paul added these frees: make sure the same is happening in the pmFileIOChecks
     
    6868    // ppImageJpegFPA (config, view);
    6969
    70     pmFPAfileIOChecks (config->files, view, PM_FPA_AFTER);
     70    if (!pmFPAfileIOChecks (config, view, PM_FPA_AFTER)) return false;
    7171
    7272    psFree (view);
Note: See TracChangeset for help on using the changeset viewer.