IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38943


Ignore:
Timestamp:
Oct 22, 2015, 2:23:44 PM (11 years ago)
Author:
watersc1
Message:

Final version of full force summary addstar changes. Typos fixed, sql fixed, addstar_run.pl now explicitly requires a dbname entry, task updated with revert code.

Location:
trunk
Files:
4 edited

Legend:

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

    r38937 r38943  
    7070pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV;
    7171pod2usage(
    72           -msg => "Required options: --add_id --camera --outroot --dvodb --stageroot --stage",
     72          -msg => "Required options: --add_id --camera --outroot --dvodb --stageroot --stage --dbname",
    7373          -exitval => 3,
    7474          ) unless
     
    7878    defined $stageroot and
    7979    defined $dvodb and
     80    defined $dbname and
    8081    defined $camera;
    8182if ($stage =~ /cam/ && !defined $stage_id) {
     
    309310   
    310311    unless ($no_op) {
    311             print $dvodbReal;
     312            print "$dvodbReal\n";
    312313            ## addstar can either save the full set of detections, or just
    313314            ## the image metadata, in the dvodb.  this is set in the
     
    338339
    339340            if ($stage ne 'fullforce_summary') {
     341#               print "IN ADDSTAR VERSION\n";
    340342                # require a defined output dvo database to run addstar (ie, refuse to use the .ptolemyrc default)
    341343                $command  = "$addstar -update"; # XXX optionally set -update?
     
    360362            }
    361363            else { # Full force summary case
     364#               print "IN LOADGALPHOT VERSION\n";
    362365                # We need to know the filter to set up the photcode, as the summaries do not include that in the header.
    363366                # We /could/ set up the addtool stuff to pass that in to the script when needed, but that would require adding
     
    368371                {
    369372                    my $ff_command = "$fftool -dbname ${dbname} -summary -ff_id ${stage_id}";
     373                    print "$ff_command\n";
    370374                    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    371                         run(command => $command, verbose => $verbose);
     375                        run(command => $ff_command, verbose => $verbose);
    372376                    unless ($success) {
    373377                        $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
  • trunk/ippTasks/addstar.pro

    r38937 r38943  
    8585    active false
    8686  end
     87  task addstar.revert.fullforce_summary
     88    active false
     89  end
    8790end
    8891
     
    104107  end
    105108  task addstar.revert.fullforce
     109    active true
     110  end
     111  task addstar.revert.fullforce_summary
    106112    active true
    107113  end
     
    484490    if ("$STAGE" == "fullforce_summary")
    485491    # 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
    487493    end
    488494
  • trunk/ippTools/share/addtool_queue_ffsummary.sql

    r38846 r38943  
    44        'fullforce_summary',            -- stage
    55        ff_id,         -- stage_id
    6         0,             -- stage_extra1
     6        %d,            -- stage_extra1
    77        '%s',           -- state
    88        '%s',           -- workdir
  • trunk/ippTools/src/pxadd.c

    r37551 r38943  
    171171        query = pxDataGet("addtool_queue_ff_id.sql");
    172172        psMemSetPersistent(query, true);
     173      }
     174      else if (strcmp(stage,"fullforce_summary") == 0) {
     175        query = pxDataGet("addtool_queue_ffsummary.sql");
     176        psMemSetPersistent(query,true);
    173177      }
    174178
Note: See TracChangeset for help on using the changeset viewer.