IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 11, 2012, 2:04:31 PM (13 years ago)
Author:
watersc1
Message:

Merge from my branch including background restoration and stack stage projection cell binned images.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/ppStack/src/ppStackCleanup.c

    r30874 r34800  
    2222    options->outRO = NULL;
    2323
    24     options->expRO->data_exists = false;
    25     options->expRO->parent->data_exists = false;
    26     options->expRO->parent->parent->data_exists = false;
    27     psFree(options->expRO);
    28     options->expRO = NULL;
     24    if (options->expRO) {
     25      options->expRO->data_exists = false;
     26      if (options->expRO->parent) {
     27        options->expRO->parent->data_exists = false;
     28        options->expRO->parent->parent->data_exists = false;
     29      }
     30      psFree(options->expRO);
     31      options->expRO = NULL;
     32    }
    2933
     34    if (options->bkgRO) {
     35      options->bkgRO->data_exists = false;
     36      if (options->bkgRO->parent) {
     37        options->bkgRO->parent->data_exists = false;
     38        options->bkgRO->parent->parent->data_exists = false;
     39      }
     40      psFree(options->bkgRO);
     41      options->bkgRO = NULL;
     42    }
     43   
    3044    for (int i = 0; i < options->num; i++) {
    3145        pmCellFreeData(options->cells->data[i]);
     
    6276
    6377bool ppStackCleanup (pmConfig *config, ppStackOptions *options) {
    64 
    6578    psExit exitValue = ppStackExitCode(PS_EXIT_SUCCESS); // Exit code
    66 
     79   
    6780    // Ensure everything closes
    6881    if (config) {
     
    7285        ppStackFileActivation(config, PPSTACK_FILES_UNCONV, true);
    7386        ppStackFileActivation(config, PPSTACK_FILES_PHOT, true);
     87        ppStackFileActivation(config, PPSTACK_FILES_MEDIAN_IN, true);
     88        ppStackFileActivation(config, PPSTACK_FILES_MEDIAN_OUT, true);
    7489        if (!ppStackFilesIterateUp(config)) {
    7590            psError(psErrorCodeLast(), false, "Unable to close files.");
Note: See TracChangeset for help on using the changeset viewer.