IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 27, 2007, 6:19:19 PM (19 years ago)
Author:
Paul Price
Message:

Fixing book name to avoid warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/diff.pro

    r12078 r12113  
    22
    33### After a difference (with associated diff_id) is defined, the difference is performed
    4 ### (tasks in diffPendingSkycell).
     4### (tasks in diffSkyfile).
    55
    66
     
    2525
    2626### Initialise the books containing the tasks to do
    27 book init diffPendingSkycell
     27book init diffSkyfile
    2828
    2929### Database lists
     
    3232### Check status of diffing tasks
    3333macro diff.status
    34   book listbook diffPendingSkycell
     34  book listbook diffSkyfile
    3535end
    3636
    3737### Reset diffing tasks
    3838macro diff.reset
    39   book init diffPendingSkycell
     39  book init diffSkyfile
    4040end
    4141
     
    6262
    6363### Load tasks for doing the differences
    64 ### Tasks are loaded into diffPendingSkycell.
     64### Tasks are loaded into diffSkyfile.
    6565task           diff.skycell.load
    6666  host         local
     
    9090  task.exit    0
    9191    # convert 'stdout' to book format
    92     ipptool2book stdout diffPendingSkycell -key diff_id -uniq -setword dbname $options:0
     92    ipptool2book stdout diffSkyfile -key diff_id -uniq -setword dbname $options:0
    9393    if ($VERBOSE > 2)
    94       book listbook diffPendingSkycell
     94      book listbook diffSkyfile
    9595    end
    9696
    9797    # delete existing entries in the appropriate states
    98     process_cleanup diffPendingSkycell
     98    process_cleanup diffSkyfile
    9999  end
    100100
     
    111111
    112112### Run tasks for calculating the diff overlaps
    113 ### Tasks are taken from diffPendingSkycell.
    114 task           diff.exp.run
     113### Tasks are taken from diffSkyfile.
     114task           diff.skycell.run
    115115  periods      -poll $runpoll
    116116  periods      -exec $runexec
     
    118118
    119119  task.exec
    120     book npages diffPendingSkycell -var N
     120    book npages diffSkyfile -var N
    121121    if ($N == 0) break
    122122    if ($network == 0) break
    123123   
    124     # look for new images in diffPendingSkycell (state == NULL)
    125     book getpage diffPendingSkycell 0 -var pageName -key state NULL
     124    # look for new images in diffSkyfile (state == NULL)
     125    book getpage diffSkyfile 0 -var pageName -key state NULL
    126126    if ($pageName == NULL) break
    127127
    128     book setword diffPendingSkycell $pageName state RUN
    129     book getword diffPendingSkycell $pageName diff_id -var DIFF_ID
    130     book getword diffPendingSkycell $pageName camera -var CAMERA
    131     book getword diffPendingSkycell $pageName workdir -var WORKDIR
    132     book getword diffPendingSkycell $pageName dbname -var DBNAME
     128    book setword diffSkyfile $pageName state RUN
     129    book getword diffSkyfile $pageName diff_id -var DIFF_ID
     130    book getword diffSkyfile $pageName workdir -var WORKDIR
     131    book getword diffSkyfile $pageName dbname -var DBNAME
    133132    set_standard_args
    134133
     
    154153    # create the command line
    155154    if ($VERBOSE > 1)
    156       echo command diff_skycell.pl --diff_id $DIFF_ID --camera $CAMERA --workdir $WORKDIR $ARGS
     155      echo command diff_skycell.pl --diff_id $DIFF_ID --workdir $WORKDIR $ARGS
    157156    end
    158     command diff_skycell.pl --diff_id $DIFF_ID --camera $CAMERA --workdir $WORKDIR $ARGS
     157    command diff_skycell.pl --diff_id $DIFF_ID --workdir $WORKDIR $ARGS
    159158  end
    160159
    161160  # default exit status
    162161  task.exit    default
    163     process_exit diffPendingSkycell $options:0 $JOB_STATUS
     162    process_exit diffSkyfile $options:0 $JOB_STATUS
    164163  end
    165164
     
    167166  task.exit    timeout
    168167    showcommand timeout
    169     book setword diffPendingSkycell $options:0 state TIMEOUT
     168    book setword diffSkyfile $options:0 state TIMEOUT
    170169  end
    171170end
Note: See TracChangeset for help on using the changeset viewer.