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.stack.pro

    r14681 r14693  
    139139      $outpath = `ipp_datapath.pl $WORKDIR`
    140140    end
    141     $outpath = $outpath/$CAMERA.$DET_TYPE.$DET_ID
    142     $outroot = $outpath/$CAMERA.$DET_TYPE.$DET_ID.$ITERATION
     141    sprintf outpath "%s/%s.%s.%s" $outpath $CAMERA $DET_TYPE $DET_ID
     142    sprintf outroot "%s/%s.%s.%s.%s" $outpath $CAMERA $DET_TYPE $DET_ID $ITERATION
    143143    $logfile = `ipp_filename.pl --filerule LOG.IMFILE --camera $CAMERA --class_id $CLASS_ID --basename $outroot`
    144144    if ("$logfile" == "")
    145       $logfile = $outroot.$CLASS_ID.log
     145      sprintf logfile "%s.%s.log" $outroot $CLASS_ID
    146146    end
    147147
Note: See TracChangeset for help on using the changeset viewer.