IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30458


Ignore:
Timestamp:
Feb 2, 2011, 12:22:54 PM (15 years ago)
Author:
watersc1
Message:

Updated register.pro to use a book that contains the dbname and valid_burntool values explicitly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/register.pro

    r30248 r30458  
    105105
    106106macro register.add.date
    107   if ($0 != 2)
    108     echo "USAGE: register.add.date (YYYY-MM-DD)"
     107  if ($0 != 4)
     108    echo "USAGE: register.add.date (YYYY-MM-DD) (DBNAME) (VALID_BURNTOOL)"
    109109    break
    110110  end
     
    112112   book newpage regDates $1
    113113   book setword regDates $1 nsState NEW
    114    book setword regDates $1 dbname $DB:0
    115 end
    116 
    117 
    118 $valid_burntool_value = 14
     114   book setword regDates $1 dbname $2
     115   book setword regDates $1 valid_burntool $3
     116end
     117
     118
     119# $valid_burntool_value = 14
    119120$sunrise = 17:30:00
    120121$sunset  = 03:30:00
     
    567568     else
    568569       book getpage regDates $reg_datePAGE -var today
     570       book getword regDates $reg_datePAGE dbname -var dbname
     571       book getword regDates $reg_datePAGE valid_burntool -var valid_burntool
    569572       $reg_datePAGE ++
    570573       if ($reg_datePAGE >= $Npages) set reg_datePAGE = 0
     
    577580    $dateobs_begin = $today\T$sunset
    578581    $dateobs_end   = $today\T$sunrise
    579     $run = $run -dateobs_begin $dateobs_begin -dateobs_end $dateobs_end -valid_burntool $valid_burntool_value
    580     if ($DB:n == 0)
    581       option DEFAULT
    582     else
    583       # save the DB name for the exit tasks
    584       option $DB:$regPendingBurntoolImfile_DB
    585       $run = $run -dbname $DB:$regPendingBurntoolImfile_DB
    586       $regPendingBurntoolImfile_DB ++
    587       if ($regPendingBurntoolImfile_DB >= $DB:n) set regPendingBurntoolImfile_DB = 0
    588     end
     582    $run = $run -dateobs_begin $dateobs_begin -dateobs_end $dateobs_end -valid_burntool $valid_burntool
     583    $run = $run -dbname $dbname
     584#     if ($DB:n == 0)
     585#       option DEFAULT
     586#     else
     587#       # save the DB name for the exit tasks
     588#       option $DB:$regPendingBurntoolImfile_DB
     589#       $run = $run -dbname $DB:$regPendingBurntoolImfile_DB
     590#       if ("$dbname" != "$DB:$regPendingBurntoolImfile_DB")
     591#         break
     592#       end
     593#       $regPendingBurntoolImfile_DB ++
     594#       if ($regPendingBurntoolImfile_DB >= $DB:n) set regPendingBurntoolImfile_DB = 0
     595#     end
    589596
    590597#    echo $run
     
    697704    book setword regDates $today nsState NEW
    698705    book setword regDates $today dbname $DB:0
     706    book setword regDates $today valid_burntool 14
    699707
    700708    command true
Note: See TracChangeset for help on using the changeset viewer.