IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25847


Ignore:
Timestamp:
Oct 14, 2009, 5:36:51 PM (17 years ago)
Author:
Paul Price
Message:

Generate an error if the configuration dumping doesn't work.

Location:
trunk
Files:
5 edited

Legend:

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

    r24229 r25847  
    5151        }
    5252
    53         // crosstalk measurement needs to be done on the entire chip at once, and before
    54         // signal levels are modified by the detrending.  If crosstalk measurement is
    55         // requested, the read-level for the images is set to CHIP.
    56         if (!ppImageMeasureCrosstalk(config, options, view)) {
    57           ESCAPE("Unable to perform crosstalk correction");
    58         }
    59 
    60         // crosstalk correction needs to be done on the entire chip at once, and before
    61         // signal levels are modified by the detrending.  If crosstalk correction is
    62         // requested, the read-level for the images is set to CHIP.
    63         if (!ppImageCorrectCrosstalk(config, options, view)) {
    64           ESCAPE("Unable to perform crosstalk correction");
    65         }
     53        // crosstalk measurement needs to be done on the entire chip at once, and before
     54        // signal levels are modified by the detrending.  If crosstalk measurement is
     55        // requested, the read-level for the images is set to CHIP.
     56        if (!ppImageMeasureCrosstalk(config, options, view)) {
     57          ESCAPE("Unable to perform crosstalk correction");
     58        }
     59
     60        // crosstalk correction needs to be done on the entire chip at once, and before
     61        // signal levels are modified by the detrending.  If crosstalk correction is
     62        // requested, the read-level for the images is set to CHIP.
     63        if (!ppImageCorrectCrosstalk(config, options, view)) {
     64          ESCAPE("Unable to perform crosstalk correction");
     65        }
    6666
    6767        psTimerStart(TIMER_DETREND);
     
    104104                }
    105105
    106                 // XXX TEST:
    107                 // psphotSaveImage (NULL, readout->image, "test.image.fits");
     106                // XXX TEST:
     107                // psphotSaveImage (NULL, readout->image, "test.image.fits");
    108108
    109109                // XXX set the options->*Mask values here (after the mask images have been loaded
     
    250250    psString dump_file = psMetadataLookupStr(&status, config->arguments, "DUMP_CONFIG");
    251251    if (dump_file) {
    252         pmConfigDump(config, dump_file);
     252        if (!pmConfigDump(config, dump_file)) {
     253            ESCAPE("Unable to dump configuration.");
     254        }
    253255    }
    254256
  • trunk/ppStack/src/ppStackFinish.c

    r23753 r25847  
    6666    psString dump = psMetadataLookupStr(&mdok, config->arguments, "DUMP_CONFIG"); // File for config
    6767    if (dump) {
    68         pmConfigDump(config, dump);
     68        if (!pmConfigDump(config, dump)) {
     69            psError(PS_ERR_IO, false, "Unable to dump configuration.");
     70            return false;
     71        }
    6972    }
    7073
  • trunk/ppSub/src/ppSub.c

    r23753 r25847  
    7676    psTimerStop();
    7777
     78    psString dump_file = psMetadataLookupStr(NULL, data->config->arguments, "-dumpconfig");
     79    if (dump_file) {
     80        if (!pmConfigDump(data->config, dump_file)) {
     81            psErrorStackPrint(stderr, "Unable to dump configuration.\n");
     82            exitValue = PS_EXIT_SYS_ERROR;
     83        }
     84    }
    7885    psFree(data);
    7986
  • trunk/ppSub/src/ppSubData.c

    r23753 r25847  
    2929    psFree(data->stats);
    3030
    31     psString dump_file = psMetadataLookupStr(NULL, data->config->arguments, "-dumpconfig");
    32     if (dump_file) {
    33         pmConfigDump(data->config, dump_file);
    34     }
    3531    psFree(data->config);
    3632
  • trunk/pswarp/src/pswarpLoop.c

    r25738 r25847  
    488488    psString dump_file = psMetadataLookupStr(&status, config->arguments, "DUMP_CONFIG");
    489489    if (dump_file) {
    490         pmConfigDump(config, dump_file);
     490        if (!pmConfigDump(config, dump_file)) {
     491            psError(PS_ERR_IO, false, "Unable to dump configuration");
     492            return false;
     493        }
    491494    }
    492495
Note: See TracChangeset for help on using the changeset viewer.