IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 8, 2025, 11:18:50 AM (8 months ago)
Author:
eugene
Message:

working on burntool

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20250626/tools/eam/burntool.20250520/src/bt.getchip.pt

    r42912 r42933  
    11
    2 # the master book btChipNights lists all of CHIPNIGHT books
     2# btChipNights : bookw with list of all CHIPNIGHT books
    33# CHIPNIGHT books are named after the nights and chips, e.g. 20250704.XY01
    44
    5 if (not($BT_CHIPNIGHT_NSEQ)) set BT_CHIPNIGHT_NSEQ = 0
     5# Design Concept:  We have a collection of nights to process.  Each night has a collection of
     6# exposures, each with a number of chips.  The books in this pantasks file
     7# list the complete set of chip/exposures for a given night.
     8
     9# a given chip/exposure goes throught the following set of steps:
     10# INIT : the ChipNight book is populated with the list of chip/exposures based on queries to the db
     11# PREP : a job is active to determine the chip/exposure basic info (paths, etc)
     12# DONEPREP : after the chip/exposure has been prepped, it waits to be run
     13#
     14
     15if (not($BT_CHIPNIGHT_ITER)) set BT_CHIPNIGHT_ITER = 0
    616
    717# get the next available chip (one chip from an exposure for a single night)
     
    2434
    2535    # if we have reached the end, restart the loop over chip hosts
    26     if ($BT_CHIPNIGHT_NSEQ >= $Nnights)
    27       $BT_CHIPNIGHT_NSEQ = 0
     36    if ($BT_CHIPNIGHT_ITER >= $Nnights)
     37      $BT_CHIPNIGHT_ITER = 0
    2838      echo "restart loop"
    2939      break
     
    3141   
    3242    # grab info for this CHIPNIGHT
    33     book getpage btChipNights $BT_CHIPNIGHT_NSEQ           -var BT_CHIPNIGHT_PAGE
     43    book getpage btChipNights $BT_CHIPNIGHT_ITER           -var BT_CHIPNIGHT_PAGE
    3444    book getword btChipNights $BT_CHIPNIGHT_PAGE CHIPNIGHT -var BT_CHIPNIGHT_BOOK
    3545    book getword btChipNights $BT_CHIPNIGHT_PAGE STATE     -var BT_CHIPNIGHT_STATE
     
    4353    # is this chip/night ready to go?
    4454    if (("$BT_CHIPNIGHT_STATE" == "RUN") || ("$BT_CHIPNIGHT_STATE" == "FAIL"))
    45       $BT_CHIPNIGHT_NSEQ ++
     55      $BT_CHIPNIGHT_ITER ++
    4656      periods -exec 0.05
    4757      break
     
    5666    if ($BT_CHIPNIGHT_ENTRY >= $BT_CHIPNIGHT_NCHIP)
    5767      echo "done with chip/night $BT_CHIPNIGHT_BOOK"
    58       $BT_CHIPNIGHT_NSEQ ++
     68      $BT_CHIPNIGHT_ITER ++
    5969      periods -exec 0.05
    6070      break
Note: See TracChangeset for help on using the changeset viewer.