Changeset 29653 for trunk/ippScripts/scripts/automate_stacks.pl
- Timestamp:
- Nov 3, 2010, 1:09:45 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/automate_stacks.pl (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 ";
Note:
See TracChangeset
for help on using the changeset viewer.
