Changeset 29653
- Timestamp:
- Nov 3, 2010, 1:09:45 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
ippScripts/scripts/automate_stacks.pl (modified) (3 diffs)
-
ippTasks/nightly_stacks.pro (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/automate_stacks.pl
r29266 r29653 1307 1307 ################################################################################ 1308 1308 1309 sub 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 1309 1325 sub do_extra_processing { 1310 1326 my $date = shift; … … 1332 1348 if (($#{ $warps } + 1) % 2 != 0) { 1333 1349 print STDERR "Number of input warps to make OSS diffs is not even! $#{ $warps }\n"; 1334 die;1350 last; 1335 1351 } 1336 1352 … … 1341 1357 my $template_exp_id = ${ $template_warp }[0]; 1342 1358 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 1343 1367 my $cmd = "$difftool -dbname $dbname -definewarpwarp "; 1344 1368 $cmd .= "-input_label $label -template_label $label "; -
trunk/ippTasks/nightly_stacks.pro
r29156 r29653 83 83 macro ns.stacks.on 84 84 task ns.stacks.load 85 active true85 active false 86 86 end 87 87 task ns.stacks.run … … 531 531 # 532 532 task ns.stacks.load 533 active false 533 534 host local 534 535 periods -poll $LOADPOLL … … 617 618 option $date 618 619 619 if ( "$ns_STATE" != "QUEUESTACKS") break620 if (("$ns_STATE" != "QUEUESTACKS")&&("$ns_STATE" != "TOWARP")&&("$ns_STATE" != "FORCETOWARP")) break 620 621 $run = automate_stacks.pl --queue_stacks --date $date 621 622 command $run
Note:
See TracChangeset
for help on using the changeset viewer.
