IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 14017


Ignore:
Timestamp:
Jul 5, 2007, 10:13:45 AM (19 years ago)
Author:
jhoblitt
Message:

merge backtrace branch

Location:
trunk/dbconfig
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/dbconfig/cam.md

    r13937 r14017  
    1 # imfiles is not here... is it needed?
    2 
    3 camPendingExp METADATA
     1camRun METADATA
    42    cam_id      S64         0       # Primary Key AUTO_INCREMENT
    5     chip_id     S64         0       # Primary Key fkey(chip_id) ref chipProcessedExp(chip_id)
     3    chip_id     S64         0       # Primary Key fkey(chip_id) ref chipRun(chip_id)
     4    state       STR         64      # key
    65    workdir     STR         255
     6    workdir_state STR       64      # key
    77    label       STR         64      # key
    88    reduction   STR         64
     
    1414# the camPendingExp row gets deleted so we can not put a fkey on cam_id
    1515    cam_id         S64      0       # Primary Key
    16     chip_id        S64      0       # Primary Key fkey(chip_id) ref chipProcessedExp(chip_id)
    17     workdir        STR      255
    18     label          STR      64      # key
    19     reduction      STR      64
    20     expgroup       STR      64      # key
    21     dvodb          STR      255
     16    chip_id        S64      0       # Primary Key fkey(cam_id, chip_id) ref camRun(cam_id, chip_id)
    2217    uri            STR      255
    2318    bg             F32      0.0
  • trunk/dbconfig/chip.md

    r13937 r14017  
    1 # do we need nclass?
    2 # class is missing
     1#
     2#  We are dependant on the assumption that there is only ever one exp_tag in a
     3#  chipRun although the database does not enforce this.
     4#
    35
    4 chipPendingExp METADATA
     6chipRun METADATA
    57    chip_id     S64         0       # Primary Key AUTO_INCREMENT
    6     exp_tag     STR         64      # Primary Key
    7     guide_id    S64         0       # Not NULL
     8    state       STR         64      # key
    89    workdir     STR         255
     10    workdir_state STR       64      # key
    911    label       STR         64      # key
    1012    reduction   STR         64      # Reduction class
     
    1315END
    1416
    15 # uris in & out ?
    16 
    17 chipPendingImfile METADATA
    18     chip_id     S64         0       # Primary Key
     17chipInputImfile METADATA
     18    chip_id     S64         0       # Primary Key fkey (chip_id) ref chipRun(chip_id)
     19    exp_tag     STR         64      # Primary Key fkey (exp_tag, class_id) ref rawImfile (exp_tag, class_id)
    1920    class_id    STR         64      # Primary Key
    20     uri         STR         255
    2121END
    2222
    23 # nclass & ndone?
    24 # and/or logging imfile done better?
    25 
    26 chipProcessedExp METADATA
    27     chip_id     S64         0       # Primary Key
     23chipProcessedImfile METADATA
     24    chip_id     S64         0       # Primary Key fkey (chip_id, exp_tag, class_id) ref chipPendingImfile(chip_id, exp_tag, class_id)
    2825    exp_tag     STR         64      # Primary Key
    29     guide_id    S64         0       # Not NULL
    30     workdir     STR         255
    31     label       STR         64      # key
    32     reduction   STR         64
    33     expgroup    STR         64      # key
    34     dvodb       STR         255
    35 END
    36 
    37 chipMask METADATA
    38     label       STR         64      # Primary Key
    39 END
    40 
    41 # uris in & out ?
    42 # state?
    43 
    44 chipProcessedImfile METADATA
    45     chip_id     S64         0       # Primary Key
    46 # exp_tag/guide_id are redudant with the values stored in chipProcessedExp.
    47 # exp_tag can be removed at virtually any time (SQL queriers will need to be
    48 # fixed) but guide_id needs to wait until we know if this can be tracked at
    49 # just the exp level.
    5026    class_id        STR     64      # Primary Key
    5127    uri             STR     255
     
    7147    fault           S16     0       # Key NOT NULL
    7248END
     49
     50chipMask METADATA
     51    label       STR         64      # Primary Key
     52END
  • trunk/dbconfig/tasks.md

    r13617 r14017  
    1 # $Id: tasks.md,v 1.134 2007-06-05 00:24:52 eugene Exp $
     1# $Id: tasks.md,v 1.135 2007-07-05 20:13:45 jhoblitt Exp $
    22
    33# this table records all exposure ID ever seen from the summit
     
    8585    exp_tag     STR         64      # Primary Key
    8686    exp_id      STR         64      # Key
     87    state       STR         64      # Key
    8788    camera      STR         64      # Key
    8889    telescope   STR         64      # Key
    8990    imfiles     S32         0
    9091    workdir     STR         255     # destination for output files
     92    workdir_state STR       64      # key
    9193END
    9294
     
    9496# from there
    9597newImfile METADATA
    96     exp_tag     STR         64      # Primary Key
    97     class       STR         64      # Primary Key
     98    exp_tag     STR         64      # Primary Key fkey(exp_tag) ref newExp(exp_tag)
    9899    class_id    STR         64      # Primary Key
    99100    uri         STR         255
     
    102103# paired with rawImfile
    103104rawExp METADATA
    104     exp_tag     STR         64      # Primary Key
     105    exp_tag     STR         64      # Primary Key fkey(exp_tag) ref newExp(exp_tag)
    105106    exp_id      STR         64      # Key
    106107    camera      STR         64
     
    135136
    136137rawImfile METADATA
    137     exp_tag     STR         64      # Primary Key
     138    exp_tag     STR         64      # Primary Key fkey(exp_tag, class_id) ref newImfile(exp_tag, class_id)
    138139    class_id    STR         64      # Primary Key
    139140    uri         STR         255
Note: See TracChangeset for help on using the changeset viewer.