IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 29, 2007, 3:15:26 PM (19 years ago)
Author:
eugene
Message:

use sprintf to avoid parsing names with numbers and dashes as math expressions

File:
1 edited

Legend:

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

    r14681 r14693  
    160160      $outpath = `ipp_datapath.pl $WORKDIR`
    161161    end
    162     $outpath = $outpath/$CAMERA.$DET_TYPE.$DET_ID/$EXP_TAG
    163     $outroot = $outpath/$EXP_TAG.detproc.$DET_ID
     162    sprintf outpath "%s/%s.%s.%s/%s" $outpath $CAMERA $DET_TYPE $DET_ID $EXP_TAG
     163    sprintf outroot "%s/%s.detproc.%s" $outpath $EXP_TAG $DET_ID
    164164    $logfile = `ipp_filename.pl --filerule LOG.IMFILE --camera $CAMERA --class_id $CLASS_ID --basename $outroot`
    165165    if ("$logfile" == "")
    166       $logfile = $outroot.$CLASS_ID.log
     166      sprintf logfile "%s.%s.log" $outroot $CLASS_ID
    167167    end
    168168
     
    289289      $outpath = `ipp_datapath.pl $WORKDIR`
    290290    end
    291     $outpath = $outpath/$CAMERA.$DET_TYPE.$DET_ID/$EXP_TAG
    292     $outroot = $outpath/$EXP_TAG.detproc.$DET_ID
     291    sprintf outpath "%s/%s.%s.%s/%s" $outpath $CAMERA $DET_TYPE $DET_ID $EXP_TAG
     292    sprintf outroot "%s/%s.detproc.%s" $outpath $EXP_TAG $DET_ID
    293293    $logfile = `ipp_filename.pl --filerule LOG.EXP --camera $CAMERA --class_id NONE --basename $outroot`
    294294    if ("$logfile" == "")
Note: See TracChangeset for help on using the changeset viewer.