IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 6, 2007, 1:42:40 PM (19 years ago)
Author:
eugene
Message:

unifying, cleaning logfile output names

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/detrend.norm.pro

    r12697 r13683  
    164164
    165165    if ("$WORKDIR" == "NULL")
    166       $outroot = `pwd`
    167     else
    168       $outroot = `ipp_datapath.pl $WORKDIR`
    169     end
    170     $outroot = $outroot/$CAMERA.$DET_TYPE.$DET_ID
    171     $logfile = $outroot/norm.$DET_ID.$ITERATION.log
     166      $outpath = `pwd`
     167    else
     168      $outpath = `ipp_datapath.pl $WORKDIR`
     169    end
     170    $outpath = $outpath/$CAMERA.$DET_TYPE.$DET_ID
     171    $logfile = $outpath/$CAMERA.$DET_TYPE.norm.$DET_ID.$ITERATION.log
    172172    stdout $logfile
    173173    stderr $logfile
    174     exec mkdir -p $outroot
     174    exec mkdir -p $outpath
    175175
    176176    $run = detrend_norm_calc.pl --det_id $DET_ID --iteration $ITERATION --det_type $DET_TYPE
     
    287287    # XXX use ipp_filename.pl to lookup output file names
    288288    if ("$WORKDIR" == "NULL")
    289       $outroot = `pwd`
    290     else
    291       $outroot = `ipp_datapath.pl $WORKDIR`
    292     end
    293     $outroot = $outroot/$CAMERA.$DET_TYPE.$DET_ID
    294     $logfile = $outroot/norm.$DET_ID.$ITERATION.$CLASS_ID.log
     289      $outpath = `pwd`
     290    else
     291      $outpath = `ipp_datapath.pl $WORKDIR`
     292    end
     293    $outpath = $outpath/$CAMERA.$DET_TYPE.$DET_ID
     294    $logfile = $outpath/$CAMERA.$DET_TYPE.norm.$DET_ID.$ITERATION.$CLASS_ID.log
    295295    stdout $logfile
    296296    stderr $logfile
    297     exec mkdir -p $outroot
     297    exec mkdir -p $outpath
    298298
    299299    $run = detrend_norm_apply.pl --det_id $DET_ID --iteration $ITERATION --class_id $CLASS_ID --value $NORM --input_uri $URI --camera $CAMERA --det_type $DET_TYPE
     
    407407    # XXX add $WORKDIR/$LOG_DIR
    408408    if ("$WORKDIR" == "NULL")
    409       $outroot = `pwd`
    410     else
    411       $outroot = `ipp_datapath.pl $WORKDIR`
    412     end
    413     $outroot = $outroot/$CAMERA.$DET_TYPE.$DET_ID
    414     $logfile = $outroot/norm.$DET_ID.$ITERATION.log
     409      $outpath = `pwd`
     410    else
     411      $outpath = `ipp_datapath.pl $WORKDIR`
     412    end
     413    $outpath = $outpath/$CAMERA.$DET_TYPE.$DET_ID
     414    $logfile = $outpath/$CAMERA.$DET_TYPE.norm.$DET_ID.$ITERATION.log
    415415    stdout $logfile
    416416    stderr $logfile
    417     exec mkdir -p $outroot
     417    exec mkdir -p $outpath
    418418
    419419    $run = detrend_norm_exp.pl --det_id $DET_ID --iteration $ITERATION --camera $CAMERA --det_type $DET_TYPE
Note: See TracChangeset for help on using the changeset viewer.