IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30803


Ignore:
Timestamp:
Mar 4, 2011, 3:15:15 PM (15 years ago)
Author:
bills
Message:

handle cleanup of raw magicDSRuns where re_place is false.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/magic_destreak_cleanup.pl

    r30630 r30803  
    102102my $cam_path_base = $run->{cam_path_base};
    103103my $cam_reduction = $run->{cam_reduction};
     104my $replace = $run->{re_place};
    104105$cam_reduction = 'DEFAULT' if !$cam_reduction or ($cam_reduction eq 'NULL');
    105106
     
    111112
    112113&my_die("unexpected run state found: $state", $magic_ds_id, $PS_EXIT_CONFIG_ERROR) if $state ne "goto_cleaned";
    113 &my_die("clean not allowed for raw stage, use goto_restore", $magic_ds_id, $PS_EXIT_CONFIG_ERROR) if $stage eq "raw";
     114&my_die("cleanup not allowed for raw stage, use goto_restore", $magic_ds_id, $PS_EXIT_CONFIG_ERROR) if $stage eq "raw" and $replace;
    114115
    115116my $recipe_psastro;
     
    217218                # $bsources = $ipprc->filename("$name.SOURCES", $backup_path_base);
    218219            }
     220        } elsif ($stage eq "raw") {
     221            if ($backup_path_base) {
     222                if ($backup_path_base =~ /fits/) {
     223                    $bimage = $backup_path_base;
     224                } else {
     225                    $bimage = $backup_path_base . ".fits";
     226                }
     227            }
    219228        }
    220229
Note: See TracChangeset for help on using the changeset viewer.