IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 8, 2007, 5:41:36 PM (19 years ago)
Author:
Paul Price
Message:

Fixing up workdir, so that operations go into the current directory if workdir is NULL

File:
1 edited

Legend:

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

    r12361 r12368  
    154154
    155155    ## output log filename
    156     $outroot = `ipp_datapath.pl $WORKDIR`
     156    if ($WORKDIR == NULL)
     157      $outroot = `pwd`
     158    else
     159      $outroot = `ipp_datapath.pl $WORKDIR`
     160    end
    157161    $outroot = $outroot/$EXP_TAG
    158162    $logfile = $outroot/detproc.$DET_ID.$CLASS_ID.log
     
    166170    # create example job options as a demonstration
    167171    if ($VERBOSE > 1)
    168       echo command detrend_process_imfile.pl --det_id $DET_ID --det_type $DET_TYPE --exp_tag $EXP_TAG --class_id $CLASS_ID --input_uri $URI --camera $CAMERA $ARGS
    169     end
    170     command detrend_process_imfile.pl --det_id $DET_ID --det_type $DET_TYPE --exp_tag $EXP_TAG --class_id $CLASS_ID --input_uri $URI --camera $CAMERA $ARGS
     172      echo command detrend_process_imfile.pl --det_id $DET_ID --det_type $DET_TYPE --exp_tag $EXP_TAG --class_id $CLASS_ID --input_uri $URI --camera $CAMERA --workdir $outroot $ARGS
     173    end
     174    command detrend_process_imfile.pl --det_id $DET_ID --det_type $DET_TYPE --exp_tag $EXP_TAG --class_id $CLASS_ID --input_uri $URI --camera $CAMERA --workdir $outroot $ARGS
    171175  end
    172176
     
    267271
    268272    # XXX push this into the filerules?
    269     $outroot = `ipp_datapath.pl $WORKDIR`
     273    if ($WORKDIR == NULL)
     274      $outroot = `pwd`
     275    else
     276      $outroot = `ipp_datapath.pl $WORKDIR`
     277    end
    270278    $outroot = $outroot/$EXP_TAG
    271279    $logfile = $outroot/detproc.$DET_ID.$ITERATION.log
     
    279287    # create example job options as a demonstration
    280288    if ($VERBOSE > 1)
    281       echo command detrend_process_exp.pl --det_id $DET_ID --exp_tag $EXP_TAG --camera $CAMERA $ARGS
    282     end
    283     command detrend_process_exp.pl --det_id $DET_ID --exp_tag $EXP_TAG --camera $CAMERA $ARGS
     289      echo command detrend_process_exp.pl --det_id $DET_ID --exp_tag $EXP_TAG --camera $CAMERA --workdir $outroot $ARGS
     290    end
     291    command detrend_process_exp.pl --det_id $DET_ID --exp_tag $EXP_TAG --camera $CAMERA --workdir $outroot $ARGS
    284292  end
    285293
Note: See TracChangeset for help on using the changeset viewer.