Changeset 34242
- Timestamp:
- Jul 31, 2012, 11:38:57 AM (14 years ago)
- Location:
- branches/eam_branches/ipp-20120627
- Files:
-
- 4 edited
-
PS-IPP-PStamp/lib/PS/IPP/PStamp/Job.pm (modified) (6 diffs)
-
ippTasks/pantasks.pro (modified) (1 diff)
-
ippTasks/science.cleanup.pro (modified) (5 diffs)
-
ppImage/src (modified) (1 prop)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20120627/PS-IPP-PStamp/lib/PS/IPP/PStamp/Job.pm
r33382 r34242 48 48 my ($regtool, $chiptool, $camtool, $warptool, $stacktool, $difftool); 49 49 my ($pstamptool, $dvoImagesAtCoords, $whichimage, $ppConfigDump); 50 51 my $default_data_groups = ""; 50 52 51 53 sub locate_images { … … 76 78 ($req_type ne "byskycell"); 77 79 80 $default_data_groups = load_data_groups($verbose); 78 81 79 82 my $dateobs_begin; … … 342 345 die "tess_id and component are required for byskycell" if !$tess_id or ! $skycell_id; 343 346 $command .= " -tess_id $tess_id -skycell_id $skycell_id"; 347 if ($stage ne 'stack') { 348 $filter_runs = 1; 349 } 344 350 } else { 345 351 # this should be caught by caller … … 357 363 358 364 $command .= " -filter $filter" if !isnull($filter); 359 $command .= " -data_group $data_group" if !isnull($data_group); 365 366 if (!isnull($data_group)) { 367 $command .= " -data_group $data_group"; 368 } elsif ($req_type eq 'byskycell') { 369 $command .= $default_data_groups; 370 } 360 371 361 372 my $images = runToolAndParse($command, $verbose); … … 727 738 # always the case. If this turns out to be a problem we can defer 728 739 # the data_group test to when we look up the chipProcessedImfiles 729 $command .= " -data_group $data_group" if $data_group; 740 if ($data_group) { 741 $command .= " -data_group $data_group"; 742 } else { 743 $command .= $default_data_groups; 744 } 730 745 $command .= " -destreaked" if $need_magic; 731 746 … … 1409 1424 } 1410 1425 1426 sub load_data_groups { 1427 my $verbose = shift; 1428 my $command = "$ppConfigDump -dump-recipe PSTAMP -"; 1429 1430 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 1431 run(command => $command, verbose => $verbose); 1432 unless ($success) { 1433 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 1434 die("Unable to perform ppConfigDump: $error_code"); 1435 } 1436 my $mdcParser = PS::IPP::Metadata::Config->new; 1437 my $metadata = $mdcParser->parse(join "", @$stdout_buf) or 1438 die ("Unable to parse metadata config doc"); 1439 1440 my $data_group_string = ""; 1441 foreach my $item (@$metadata) { 1442 my $tag = $item->{name}; 1443 next if $tag ne "DATA_GROUP"; 1444 my $dg = $item->{value}; 1445 # print "adding $dg to list of default data groups\n"; 1446 $data_group_string .= " -data_group $dg"; 1447 } 1448 return $data_group_string; 1449 } 1450 1411 1451 sub my_die 1412 1452 { -
branches/eam_branches/ipp-20120627/ippTasks/pantasks.pro
r34066 r34242 506 506 end 507 507 508 macro set.keep.failures 509 if ($0 != 2) 510 echo "USAGE:set.keep.failures (value)" 511 break 512 end 513 514 $KEEP_FAILURES = $1 515 end 516 517 macro get.keep.failures 518 echo "KEEP_FAILURES: $KEEP_FAILURES" 519 end 520 521 522 523 508 524 macro set.verbosity 509 525 if ($0 != 2) -
branches/eam_branches/ipp-20120627/ippTasks/science.cleanup.pro
r31854 r34242 114 114 115 115 task.exec 116 periods -exec $RUNEXEC117 116 118 117 book npages chipPendingCleanup -var N 119 if ($N == 0) break 118 if ($N == 0) 119 periods -exec $RUNEXEC 120 break 121 end 120 122 if ($NETWORK == 0) break 121 123 … … 573 575 574 576 task.exec 575 periods -exec $RUNEXEC576 577 577 578 book npages warpPendingCleanup -var N 578 if ($N == 0) break 579 if ($N == 0) 580 periods -exec $RUNEXEC 581 break 582 end 579 583 if ($NETWORK == 0) break 580 584 … … 728 732 729 733 task.exec 730 periods -exec $RUNEXEC731 734 732 735 book npages diffCleanup -var N 733 if ($N == 0) break 736 if ($N == 0) 737 periods -exec $RUNEXEC 738 break 739 end 734 740 if ($NETWORK == 0) break 735 741 … … 1028 1034 1029 1035 task.exec 1030 periods -exec $RUNEXEC1031 1036 1032 1037 book npages chipBGPendingCleanup -var N 1033 if ($N == 0) break 1038 if ($N == 0) 1039 periods -exec $RUNEXEC 1040 break 1041 end 1034 1042 if ($NETWORK == 0) break 1035 1043 … … 1181 1189 1182 1190 task.exec 1183 periods -exec $RUNEXEC1184 1185 1191 book npages warpBGPendingCleanup -var N 1186 if ($N == 0) break 1192 if ($N == 0) 1193 periods -exec $RUNEXEC 1194 break 1195 end 1187 1196 if ($NETWORK == 0) break 1188 1197 -
branches/eam_branches/ipp-20120627/ppImage/src
- Property svn:mergeinfo changed (with no actual effect on merging)
Note:
See TracChangeset
for help on using the changeset viewer.
