IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24707


Ignore:
Timestamp:
Jul 7, 2009, 1:29:37 PM (17 years ago)
Author:
Paul Price
Message:

Name detection files published to datastore with output root name publish.PUB_ID.EXP_ID, after request from Larry to include 'FPA_ID' in the file name.

Location:
trunk
Files:
3 edited

Legend:

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

    r24640 r24707  
    3939
    4040# Parse the command-line arguments
    41 my ( $pub_id, $camera, $stage, $stage_id, $format, $product, $workdir );
     41my ( $pub_id, $exp_id, $camera, $stage, $stage_id, $format, $product, $workdir );
    4242my ( $dbname, $verbose, $no_update, $save_temps, $redirect );
    4343
    4444GetOptions(
    4545    'pub_id=s'          => \$pub_id, # Publish identifier
     46    'exp_id=s'          => \$exp_id, # Exposure identifier
    4647    'camera=s'          => \$camera, # Camera name
    4748    'stage=s'           => \$stage,       # Stage of interest
     
    5758
    5859pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV;
    59 pod2usage( -msg => "Required options: --pub_id --camera --stage --stage_id --product --workdir",
     60pod2usage( -msg => "Required options: --pub_id --exp_id --camera --stage --stage_id --product --workdir",
    6061           -exitval => $PS_EXIT_CONFIG_ERROR) unless
    6162    defined $pub_id and
     63    defined $exp_id and
    6264    defined $camera and
    6365    defined $product and
     
    6668    defined $workdir;
    6769
    68 my $outroot = "$workdir/$product.$pub_id"; # Output root name
     70my $outroot = "$workdir/$product.$pub_id.$exp_id"; # Output root name
    6971
    7072my $ipprc = PS::IPP::Config->new( $camera ) or
  • trunk/ippTasks/publish.pro

    r24515 r24707  
    161161    book getword publishRun $pageName stage -var STAGE
    162162    book getword publishRun $pageName stage_id -var STAGE_ID
     163    book getword publishRun $pageName exp_id -var EXP_ID
    163164    book getword publishRun $pageName dbname -var DBNAME
    164165
     
    169170    strsub $WORKDIR_TEMPLATE @HOST@ $default_host -var WORKDIR
    170171
    171     $run = publish_file.pl --pub_id $PUB_ID --camera $CAMERA --workdir $WORKDIR --product $PRODUCT --stage $STAGE --stage_id $STAGE_ID --redirect-output
     172    $run = publish_file.pl --pub_id $PUB_ID --exp_id $EXP_ID --camera $CAMERA --workdir $WORKDIR --product $PRODUCT --stage $STAGE --stage_id $STAGE_ID --redirect-output
    172173    add_standard_args run
    173174
  • trunk/ippTools/share/pubtool_pending.sql

    r24512 r24707  
    1010        publishClient.workdir,
    1111        diffRun.diff_id AS stage_id,
    12         rawExp.camera
     12        rawExp.camera,
     13        rawExp.exp_id
    1314    FROM publishRun
    1415    JOIN publishClient USING(client_id)
     
    3334        publishClient.workdir,
    3435        camRun.cam_id AS stage_id,
    35         rawExp.camera
     36        rawExp.camera,
     37        rawExp.exp_id
    3638    FROM publishRun
    3739    JOIN publishClient USING(client_id)
Note: See TracChangeset for help on using the changeset viewer.