IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29653


Ignore:
Timestamp:
Nov 3, 2010, 1:09:45 PM (16 years ago)
Author:
watersc1
Message:

Updated unlinked version of the stack queue code. This treats each target (MDXX,OSS,etc) as a separate item, and queues each as they become available. Probably needs a bit more testing, but manually running the script produces the expected results.

Location:
trunk
Files:
2 edited

Legend:

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

    r29266 r29653  
    13071307################################################################################
    13081308
     1309sub verify_uniqueness_diff {
     1310    my $warp_id_1 = shift;
     1311    my $warp_id_2 = shift;
     1312    my $date = shift;
     1313    my $target = shift;
     1314
     1315    my $db = init_gpc_db();
     1316    $date =~ s/-//g;
     1317    my ($label,$workdir,$obs_mode,$object,$comment,$tess_id,$dist_group,$data_group,$reduction) = get_tool_parameters($date,$target);
     1318
     1319    my $sth = "SELECT diff_id from diffRun JOIN diffInputSkyfile USING(diff_id) where data_group = '$data_group' AND warp1 = $warp_id_1 AND warp2 = $warp_id_2";
     1320    my $data_ref = $db->selectall_arrayref( $sth );
     1321
     1322    return($#{ $data_ref } + 1);
     1323}
     1324
    13091325sub do_extra_processing {
    13101326    my $date = shift;
     
    13321348            if (($#{ $warps } + 1) % 2 != 0) {
    13331349                print STDERR "Number of input warps to make OSS diffs is not even! $#{ $warps }\n";
    1334                 die;
     1350                last;
    13351351            }
    13361352           
     
    13411357                my $template_exp_id = ${ $template_warp }[0];
    13421358               
     1359                my $input_warp_id = ${ $input_warp }[1];
     1360                my $template_warp_id = ${ $template_warp }[1];
     1361
     1362                if (verify_uniqueness_diff($input_warp_id,$template_warp_id,$date,$target) != 0) {
     1363                    print STDERR "Diffs already queued for this $date $target $input_exp_id $template_exp_id\n";
     1364                    next;
     1365                }
     1366
    13431367                my $cmd = "$difftool -dbname $dbname  -definewarpwarp ";
    13441368                $cmd .= "-input_label $label  -template_label $label ";
  • trunk/ippTasks/nightly_stacks.pro

    r29156 r29653  
    8383macro ns.stacks.on
    8484  task ns.stacks.load
    85     active true
     85    active false
    8686  end
    8787  task ns.stacks.run
     
    531531#
    532532task              ns.stacks.load
     533  active          false
    533534  host            local
    534535  periods         -poll $LOADPOLL
     
    617618     option $date
    618619
    619      if ("$ns_STATE" != "QUEUESTACKS") break
     620     if (("$ns_STATE" != "QUEUESTACKS")&&("$ns_STATE" != "TOWARP")&&("$ns_STATE" != "FORCETOWARP")) break
    620621     $run = automate_stacks.pl --queue_stacks --date $date
    621622     command $run
Note: See TracChangeset for help on using the changeset viewer.