IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27785


Ignore:
Timestamp:
Apr 27, 2010, 2:45:48 PM (16 years ago)
Author:
bills
Message:

When cleaning up magicDSRun for chip stage, don't clean up the camera stage
mask.

File:
1 edited

Legend:

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

    r27718 r27785  
    6363$ipprc->redirect_output($logfile) or my_die( "Unable to redirect output", $magic_ds_id, $PS_EXIT_SYS_ERROR ) if $logfile;
    6464
    65 if (0) {
    66 my $nebulousServer = metadataLookupStr( $ipprc->{_siteConfig}, 'NEB_SERVER' );
    67 &my_die("cannot find NEB_SERVER in site configuration", $magic_ds_id, $PS_EXIT_CONFIG_ERROR) if !$nebulousServer;
    68 
    69 my $nebulous = eval { Nebulous::Client->new( proxy => $nebulousServer ); };
    70 if ($@ or not defined $nebulous) {
    71     &my_die ("Unable to create a Nebulous::Client object with proxy $nebulousServer", $magic_ds_id, $PS_EXIT_CONFIG_ERROR);
    72 }
    73 }
    7465
    7566$dbname = metadataLookupStr( $ipprc->{_siteConfig}, 'DBNAME' ) if !$dbname;
     
    10899
    109100
     101&my_die("cleanup not supported for camera stage", $magic_ds_id, $PS_EXIT_PROG_ERROR) if $stage eq "camera";
     102
     103
    110104&my_die("unexpected run state found: $state", $magic_ds_id, $PS_EXIT_CONFIG_ERROR) if $state ne "goto_cleaned";
    111105&my_die("clean not allowed for raw stage, use goto_restore", $magic_ds_id, $PS_EXIT_CONFIG_ERROR) if $stage eq "raw";
     
    130124$dbh->disconnect() or warn $dbh->errstr;
    131125
     126# We no longer clean up the camera stage mask files, but the code was left in place in case
     127# we change our minds.
     128my $cleanup_cam_mask = 0;
     129
    132130my $dynamicMasks;               # Use dynamic masks?
    133131foreach my $comp (@components) {
     
    140138        if ($stage eq "chip") {
    141139            # Check to see if we're using dynamic masks
    142             if (!defined $dynamicMasks) {
     140            if ($cleanup_cam_mask && !defined $dynamicMasks) {
    143141                # Get the PSASTRO recipe
    144142                my $command = "$ppConfigDump -camera $camera -recipe PSASTRO $recipe_psastro -dump-recipe PSASTRO -";
Note: See TracChangeset for help on using the changeset viewer.