IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 9, 2007, 4:39:45 PM (19 years ago)
Author:
eugene
Message:

adjust output names, add exp_tag to chip_imfile.pl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/chip.pro

    r14042 r14095  
    119119    book getword chipPendingImfile $pageName camera -var CAMERA
    120120    book getword chipPendingImfile $pageName exp_id -var EXP_ID
     121    book getword chipPendingImfile $pageName exp_tag -var EXP_TAG
    121122    book getword chipPendingImfile $pageName chip_id -var CHIP_ID
    122123    book getword chipPendingImfile $pageName workdir -var WORKDIR
     
    136137    ## generate output log based on filerule
    137138    if ("$WORKDIR" == "NULL")
    138       $outroot = `pwd`
     139      $outpath = `pwd`
    139140    else
    140       $outroot = `ipp_datapath.pl $WORKDIR`
     141      $outpath = `ipp_datapath.pl $WORKDIR`
    141142    end
    142     $outroot = $outroot/$EXP_ID
    143     $logfile = $outroot/chip.$CLASS_ID.log
     143    $outpath = $outpath/$EXP_TAG
     144    $outroot = $outpath/$EXP_TAG.ch.$CHIP_ID
     145    $logfile = `ipp_filename.pl --filerule LOG.IMFILE --camera $CAMERA --class_id $CLASS_ID --basename $outroot`
     146    if ("$logfile" == "")
     147      $logfile = $outroot.$CLASS_ID.log
     148    end
     149
    144150    stdout $logfile
    145151    stderr $logfile
    146     exec mkdir -p $outroot
     152    exec mkdir -p $outpath
    147153
    148     $run = chip_imfile.pl --exp_id $EXP_ID --chip_id $CHIP_ID --class_id $CLASS_ID --input_uri $URI --camera $CAMERA
     154    $run = chip_imfile.pl --exp_id $EXP_ID --chip_id $CHIP_ID --class_id $CLASS_ID --exp_tag $EXP_TAG --input_uri $URI --camera $CAMERA
    149155    if ("$WORKDIR" != "NULL")
    150156      $run = $run --workdir $WORKDIR
Note: See TracChangeset for help on using the changeset viewer.