IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 17777 for trunk/ippTasks


Ignore:
Timestamp:
May 22, 2008, 11:23:49 AM (18 years ago)
Author:
bills
Message:

When data is available run register_imfile.run more frequently.
If logfile is in nebulous omit the mkdir as it doesn't apply

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/register.pro

    r17665 r17777  
    9090    # convert 'stdout' to book format
    9191    ipptool2book stdout regPendingImfile -key exp_id:tmp_class_id -uniq -setword dbname $options:0 -setword pantaskState INIT
     92    book shuffle regPendingImfile
    9293    if ($VERBOSE > 2)
    9394      book listbook regPendingImfile
     
    116117
    117118  task.exec
     119    if ($NETWORK == 0) break
    118120    book npages regPendingImfile -var N
    119     if ($N == 0) break
    120     if ($NETWORK == 0) break
     121    if ($N == 0)
     122        periods -exec $RUNEXEC
     123        break
     124    end
     125    periods -exec 0.05
    121126   
    122127    # look for new images in regPendingImfile
     
    156161    ## generate output log based on filerule (convert the URI to a PATH)
    157162    ## note that we use ipp_datapath here not ipp_filename because the CAMERA name is not yet controlled
    158 #echo before logfile is $logfile
    159163    $logfile = `ipp_datapath.pl --touch $logfile`
    160164    if ("$logfile" == "")
    161       echo "WARNING: logfile not defined in register.pro:160"
     165      echo "WARNING: logfile not defined in register.pro:165"
    162166      break
    163167    end
    164 
    165 #echo after logfile is $logfile
    166 
     168    substr $WORKDIR 0 4 scheme
     169    if ("$scheme" != "neb:")
     170        dirname $logfile -var outpath
     171        mkdir $outpath
     172    end
    167173    stdout $logfile
    168174    stderr $logfile
    169     dirname $logfile -var outpath
    170     mkdir $outpath
    171 
     175
     176    # XXX should this comment be deleted
    172177    # add mkdir back here?
    173178    # or make part of reigster_imfile.pl?
     
    284289    # file://data/ipp004.0/gpc1/20080130
    285290    # neb:///ipp004-vol0/gpc1/20080130
    286 
    287291    ## generate output log based on filerule
    288292    sprintf logfile "%s/%s/%s.reg.log" $WORKDIR $EXP_TAG $EXP_TAG
     
    290294    ## generate output log based on filerule (convert the URI to a PATH)
    291295    ## note that we use ipp_datapath here not ipp_filename because the CAMERA name is not yet controlled
    292 #echo before logfile is $logfile
    293296    $logfile = `ipp_datapath.pl --touch $logfile`
    294297    if ("$logfile" == "")
    295       echo "WARNING: logfile not defined in register.pro:291"
     298      echo "WARNING: logfile not defined in register.pro:298"
    296299      break
    297300    end
    298 
    299 #echo after logfile is $logfile
    300 
     301    substr $WORKDIR 0 4 scheme
     302    if ("$scheme" != "neb:")
     303        dirname $logfile -var outpath
     304        mkdir $outpath
     305    end
    301306    stdout $logfile
    302307    stderr $logfile
    303     dirname $logfile -var outpath
    304     mkdir $outpath
    305308
    306309    $run = register_exp.pl --exp_id $EXP_ID --exp_tag $EXP_TAG
Note: See TracChangeset for help on using the changeset viewer.