IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 6032 for trunk/ippTools/src


Ignore:
Timestamp:
Jan 17, 2006, 7:27:07 PM (21 years ago)
Author:
eugene
Message:

updates based on discussions with josh

Location:
trunk/ippTools/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/chiptool.h

    r5881 r6032  
    6262typedef struct {
    6363    char expID[32];                     // free-form exposure ID string
     64    psU8 P2version;
    6465    char class;                         // class of file: fpa (0), chip (1), cell (2), readout (3)?
    6566    int Nclass;                         // number of files of this class
    66     int Ndone;                          // number of files of this class
    67     char P1version;
    68     char P2version;
    69     char state;
     67    psU8 P1version;
    7068} p2PendingExposure;
    7169
     
    8179    char log[16];                       // extension for log file
    8280    char smf[16];                       // extension for object table
    83     char state;                         // current P2 state
    8481} p2PendingImfile;
    8582
  • trunk/ippTools/src/p2insertPendingFrames.c

    r5881 r6032  
    2121        version ++;
    2222
    23         p2PendingExposure *pendingExposure = p2PendingExposureAlloc ();
     23        p2PendingExposureRow *pendingExposure = p2PendingExposureAlloc ();
    2424        strcpy (pendingExposure->expID, rawFrame->exposure->expID);
    2525        pendingExposure->class = rawFrame->exposure->class;
     
    5252        }
    5353       
    54         p2PendingExposureInsertOneRow (config->database, pendingExposure);
    55         p2PendingImageInsertRows (config->database, pendingImages);
     54        p2PendingExposureInsertObject (config->database, pendingExposure);
     55        p2PendingImageInsertObjects (config->database, pendingImages);
    5656    }
    5757    return true;
  • trunk/ippTools/src/p2searchPendingFrames.c

    r5881 r6032  
    22
    33// select pending frames (exposure+images) which are done/not done
    4 psArray *p2searchPendingFrames (p2SearchConfig *config, bool isDone) {
     4psArray *p2searchPendingFrames (p2SearchConfig *config) {
    55
    66    // build 'where' structure
    77    psMetadata *where = psMetadataAlloc ();
    8 
    9     if (isDone) {
    10         psMetadataAddStr (where, PS_LIST_TAIL, "STATE", 0, "==", P2_STATE_DONE);
    11     } else {
    12         psMetadataAddStr (where, PS_LIST_TAIL, "STATE", 0, "==", P2_STATE_PENDING);
    13     }
    148
    159    // in order to include these restrictions, we need to define these table columns
  • trunk/ippTools/src/p2searchRawFrames.c

    r5881 r6032  
    88
    99    psMetadataAddU8  (where, PS_LIST_TAIL, "TYPE",  0, "==", P2_TYPE_OBJECT);
    10     psMetadataAddStr (where, PS_LIST_TAIL, "STATE", 0, "==", P2_START_READY);
    1110
    1211    if (config->camera != NULL) {
Note: See TracChangeset for help on using the changeset viewer.