Changeset 38943
- Timestamp:
- Oct 22, 2015, 2:23:44 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
-
ippScripts/scripts/addstar_run.pl (modified) (6 diffs)
-
ippTasks/addstar.pro (modified) (3 diffs)
-
ippTools/share/addtool_queue_ffsummary.sql (modified) (1 diff)
-
ippTools/src/pxadd.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/addstar_run.pl
r38937 r38943 70 70 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; 71 71 pod2usage( 72 -msg => "Required options: --add_id --camera --outroot --dvodb --stageroot --stage ",72 -msg => "Required options: --add_id --camera --outroot --dvodb --stageroot --stage --dbname", 73 73 -exitval => 3, 74 74 ) unless … … 78 78 defined $stageroot and 79 79 defined $dvodb and 80 defined $dbname and 80 81 defined $camera; 81 82 if ($stage =~ /cam/ && !defined $stage_id) { … … 309 310 310 311 unless ($no_op) { 311 print $dvodbReal;312 print "$dvodbReal\n"; 312 313 ## addstar can either save the full set of detections, or just 313 314 ## the image metadata, in the dvodb. this is set in the … … 338 339 339 340 if ($stage ne 'fullforce_summary') { 341 # print "IN ADDSTAR VERSION\n"; 340 342 # require a defined output dvo database to run addstar (ie, refuse to use the .ptolemyrc default) 341 343 $command = "$addstar -update"; # XXX optionally set -update? … … 360 362 } 361 363 else { # Full force summary case 364 # print "IN LOADGALPHOT VERSION\n"; 362 365 # We need to know the filter to set up the photcode, as the summaries do not include that in the header. 363 366 # We /could/ set up the addtool stuff to pass that in to the script when needed, but that would require adding … … 368 371 { 369 372 my $ff_command = "$fftool -dbname ${dbname} -summary -ff_id ${stage_id}"; 373 print "$ff_command\n"; 370 374 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 371 run(command => $ command, verbose => $verbose);375 run(command => $ff_command, verbose => $verbose); 372 376 unless ($success) { 373 377 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); -
trunk/ippTasks/addstar.pro
r38937 r38943 85 85 active false 86 86 end 87 task addstar.revert.fullforce_summary 88 active false 89 end 87 90 end 88 91 … … 104 107 end 105 108 task addstar.revert.fullforce 109 active true 110 end 111 task addstar.revert.fullforce_summary 106 112 active true 107 113 end … … 484 490 if ("$STAGE" == "fullforce_summary") 485 491 # This shouldn't need a stage_extra1, as there are no subcomponents to the ff summary. 486 $run = $run --stage_id 492 $run = $run --stage_id $STAGE_ID 487 493 end 488 494 -
trunk/ippTools/share/addtool_queue_ffsummary.sql
r38846 r38943 4 4 'fullforce_summary', -- stage 5 5 ff_id, -- stage_id 6 0, -- stage_extra16 %d, -- stage_extra1 7 7 '%s', -- state 8 8 '%s', -- workdir -
trunk/ippTools/src/pxadd.c
r37551 r38943 171 171 query = pxDataGet("addtool_queue_ff_id.sql"); 172 172 psMemSetPersistent(query, true); 173 } 174 else if (strcmp(stage,"fullforce_summary") == 0) { 175 query = pxDataGet("addtool_queue_ffsummary.sql"); 176 psMemSetPersistent(query,true); 173 177 } 174 178
Note:
See TracChangeset
for help on using the changeset viewer.
