IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28876


Ignore:
Timestamp:
Aug 9, 2010, 5:49:43 PM (16 years ago)
Author:
watersc1
Message:

backport of new cleaning automation code.

Location:
tags/ipp-20100701
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-20100701/ippScripts/scripts/automate_stacks.pl

    r28651 r28876  
    4141# Grab options
    4242my ( $date, $camera, $dbname, $logfile, $verbose, $manual);
    43 my ( $help, $isburning, $force_stack_count, $test_mode, $this_target_only, $this_filter_only, $this_mode_only, $check_mode);
     43my ( $help, $isburning, $force_stack_count, $test_mode, $this_target_only, $this_filter_only, $this_mode_only, $check_mode, $burntool_stats);
    4444my ( $check_registration, $define_burntool, $queue_burntool, $check_chips, $queue_chips);
    4545my ( $check_stacks, $queue_stacks, $check_diffs, $queue_diffs, $clean_old);
     
    5858    'check'                => \$check_mode,
    5959    'test_mode'            => \$test_mode,
     60    'burntool_stats'       => \$burntool_stats,
    6061    'this_target_only=s'   => \$this_target_only,
    6162    'this_filter_only=s'   => \$this_filter_only,
     
    8990           --this_filter_only     Process only a single filter.
    9091           --this_mode_only       Process only a single clean mode.
     92           --burntool_stats       Display Nexp Nimfile Nburntooled Nqueued for check_chips.
    9193        Modes:
    9294           --check_registration   Confirm the data downloaded correctly.
     
    656658    my $pretend = shift;
    657659    my $exposures = 0;
     660
    658661    foreach my $target (@target_list) {
    659662        my ($Nexposures,$Nimfiles,$Nburntooled,$Nalready) = pre_chip_queue($date,$target);
     663        if (defined($burntool_stats)) {
     664            print "$Nexposures $Nimfiles $Nburntooled $Nalready\n";
     665        }
     666
    660667        if ($Nexposures == 0) {
    661668            print STDERR "execute_chips: Target $target on $date had no exposures.\n";
     
    10391046    my $args = $command;
    10401047    if ((exists($clean_alternate{$mode})) && ($clean_alternate{$mode} eq 'A')) {
    1041         $args .= " -dbname $dbname -updaterun -set_state goto_cleaned -full -set_label goto_cleaned -time_stamp_end $cleaning_date ";
     1048        $args .= " -dbname $dbname -updaterun -set_state goto_cleaned -full -set_label goto_cleaned -label $label -time_stamp_end $cleaning_date ";
    10421049    }
    10431050    elsif ((exists($clean_alternate{$mode})) && ($clean_alternate{$mode} eq 'B')) {
     
    10581065
    10591066    foreach my $mode (@mode_list) {
    1060         if ((exists($clean_alternate{$mode})) && ($clean_alternate{$mode} eq 'A')) {
    1061             my ($cleaning_date,$command) = construct_cleantool_args($date,"",$mode);
    1062             if ($cleaning_date eq 'no clean') {
    1063                 next;
    1064             }
    1065             print STDERR "$command\n";
    1066             if (!(defined($pretend) || $debug == 1)) {
    1067 #           print STDERR "BEAR IS DRIVING!?\n";
    1068                 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    1069                     run ( command => $command, verbose => $verbose );
    1070                 unless ($success) {
    1071                     $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
    1072                     &my_die("Unable to perform stacktool: $error_code", 0,0,$date, $PS_EXIT_SYS_ERROR);
    1073                 }
    1074             }
    1075         }
    1076         else {
     1067#       if ((exists($clean_alternate{$mode})) && ($clean_alternate{$mode} eq 'A')) {
     1068#           my ($cleaning_date,$command) = construct_cleantool_args($date,"",$mode);
     1069#           if ($cleaning_date eq 'no clean') {
     1070#               next;
     1071#           }
     1072#           print STDERR "$command\n";
     1073#           if (!(defined($pretend) || $debug == 1)) {
     1074# #           print STDERR "BEAR IS DRIVING!?\n";
     1075#               my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
     1076#                   run ( command => $command, verbose => $verbose );
     1077#               unless ($success) {
     1078#                   $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
     1079#                   &my_die("Unable to perform cleantool ($command): $error_code", 0,0,$date, $PS_EXIT_SYS_ERROR);
     1080#               }
     1081#           }
     1082#       }
     1083#       else {
    10771084            foreach my $target (@target_list) {
    10781085                if (exists($noclean_list{$target})) {
     
    10901097                    unless ($success) {
    10911098                        $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
    1092                         &my_die("Unable to perform stacktool: $error_code", 0,0,$date, $PS_EXIT_SYS_ERROR);
     1099                        &my_die("Unable to perform cleantool ($command): $error_code", 0,0,$date, $PS_EXIT_SYS_ERROR);
    10931100                    }
    10941101                }
    10951102            }
    1096         }
     1103#       }
    10971104    }
    10981105    return(0);
  • tags/ipp-20100701/ippconfig/recipes/nightly_science.config

    r28810 r28876  
    4646#  COMMENT STR M31%
    4747  STACKABLE BOOL TRUE
     48  DIST S16 30
    4849END
    4950TARGETS METADATA
     
    5455#  COMMENT STR %MD01%
    5556  STACKABLE BOOL TRUE
     57  DIST S16 30
    5658END
    5759TARGETS METADATA
     
    6264#  COMMENT STR %MD02%
    6365  STACKABLE BOOL TRUE
     66  DIST S16 30
    6467END
    6568TARGETS METADATA
     
    7073#  COMMENT STR %MD03%
    7174  STACKABLE BOOL TRUE
     75  DIST S16 30
    7276END
    7377TARGETS METADATA
     
    7882#  COMMENT STR %MD04%
    7983  STACKABLE BOOL TRUE
     84  DIST S16 30
    8085END
    8186TARGETS METADATA
     
    8691#  COMMENT STR %MD05%
    8792  STACKABLE BOOL TRUE
     93  DIST S16 30
    8894END
    8995TARGETS METADATA
     
    94100#  COMMENT STR %MD06%
    95101  STACKABLE BOOL TRUE
     102  DIST S16 30
    96103END
    97104TARGETS METADATA
     
    102109#  COMMENT STR %MD07%
    103110  STACKABLE BOOL TRUE
     111  DIST S16 30
    104112END
    105113TARGETS METADATA
     
    110118#  COMMENT STR %MD08%
    111119  STACKABLE BOOL TRUE
     120  DIST S16 30
    112121END
    113122TARGETS METADATA
     
    118127#  COMMENT STR %MD09%
    119128  STACKABLE BOOL TRUE
     129  DIST S16 30
    120130END
    121131TARGETS METADATA
     
    126136#  COMMENT STR %MD10%
    127137  STACKABLE BOOL TRUE
     138  DIST S16 30
    128139END
    129140TARGETS METADATA
     
    150161# OBJECT STR 3PI
    151162  STACKABLE BOOL FALSE
     163  CHIP S16 14
     164  DIFF S16 14
    152165END
    153166# This is a hack, and I freely admit it.
Note: See TracChangeset for help on using the changeset viewer.