IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 30, 2006, 5:47:19 PM (20 years ago)
Author:
jhoblitt
Message:

rename:

p2searchRawFrames() -> rawScienceFrameSearch()
p2searchPendingFrames() -> p2PendingFrameSearch()

merge p2searchRawFrames.c into pxframes.c (replaced by macro)
add p0 types

File:
1 edited

Legend:

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

    r6223 r6258  
    5151static bool quickMode(pxConfig *config)
    5252{
    53     psArray *rawFrames = p2searchRawFrames(config);
     53    psArray *rawFrames = rawScienceFrameSearch(config);
    5454    if (!rawFrames) {
    5555        psError(PS_ERR_UNKNOWN, false, "no rawScienceFrames found");
     
    6767static bool defineMode(pxConfig *config)
    6868{
    69     psArray *rawFrames = p2searchRawFrames(config);
     69    psArray *rawFrames = rawScienceFrameSearch(config);
    7070    if (!rawFrames) {
    7171        psError(PS_ERR_UNKNOWN, false, "no rawScienceFrames found");
    7272        return false;
    7373    }
    74     psArray *pendingFrames = p2searchPendingFrames(config);
     74    psArray *pendingFrames = p2PendingFrameSearch(config);
    7575    // XXX compare raw frames to pending frames and remove duplicate
    7676    // frames from the raw set.  This may not be quiet right as it's
     
    9494
    9595        psFree(pendingFrames);
    96     }
    97 
    98     psArray *doneFrames = p2searchDoneFrames(config);
    99     if (doneFrames && (rawFrames->n > 0)) {
    100         for (int i = 0; i < rawFrames->n; i++) {
    101             rawScienceFrame *rawFrame = rawFrames->data[i];
    102             for (int j = 0; j < pendingFrames->n; j++) {
    103                 p2DoneFrame *doneFrame = pendingFrames->data[j];
    104                 if (strcmp(rawFrame->exposure->exp_id,
    105                            doneFrame->exposure->exp_id) == 0) {
    106                     psArrayRemove(rawFrames, rawFrame);
    107                     // dec the counter as the array just got shorter
    108                     // and we don't want to skip elemnts
    109                     i--;
    110                     break;
    111                 } 
    112             }
    113         }
    114 
    115         psFree(doneFrames);
     96
     97        psArray *doneFrames = p2searchDoneFrames(config);
     98        if (doneFrames && (rawFrames->n > 0)) {
     99            for (int i = 0; i < rawFrames->n; i++) {
     100                rawScienceFrame *rawFrame = rawFrames->data[i];
     101                for (int j = 0; j < pendingFrames->n; j++) {
     102                    p2DoneFrame *doneFrame = pendingFrames->data[j];
     103                    if (strcmp(rawFrame->exposure->exp_id,
     104                               doneFrame->exposure->exp_id) == 0) {
     105                        psArrayRemove(rawFrames, rawFrame);
     106                        // dec the counter as the array just got shorter
     107                        // and we don't want to skip elemnts
     108                        i--;
     109                        break;
     110                    }
     111                }
     112            }
     113
     114            psFree(doneFrames);
     115        }
    116116    }
    117117
     
    133133static bool pendingMode(pxConfig *config)
    134134{
    135     psArray *pendingFrames = p2searchPendingFrames(config);
     135    psArray *pendingFrames = p2PendingFrameSearch(config);
    136136    if (!pendingFrames) {
    137137        psError(PS_ERR_UNKNOWN, false, "no p2PendingFrames found");
Note: See TracChangeset for help on using the changeset viewer.