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.resid.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.detresid.$DET_ID.$ITERATION
     162    sprintf outpath "%s/%s.%s.%s/%s" $outpath $CAMERA $DET_TYPE $DET_ID $EXP_TAG
     163    sprintf outroot "%s/%s.detresid.%s.%s" $outpath $EXP_TAG $DET_ID $ITERATION
    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
     
    292292      $outpath = `ipp_datapath.pl $WORKDIR`
    293293    end
    294     $outpath = $outpath/$CAMERA.$DET_TYPE.$DET_ID/$EXP_TAG
    295     $outroot = $outpath/$EXP_TAG.detresid.$DET_ID.$ITERATION
     294    sprintf outpath "%s/%s.%s.%s/%s" $outpath $CAMERA $DET_TYPE $DET_ID $EXP_TAG
     295    sprintf outroot "%s/%s.detresid.%s.%s" $outpath $EXP_TAG $DET_ID $ITERATION
    296296    $logfile = `ipp_filename.pl --filerule LOG.IMFILE --camera $CAMERA --class_id NONE --basename $outroot`
    297297
Note: See TracChangeset for help on using the changeset viewer.