IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 3, 2006, 6:18:57 PM (20 years ago)
Author:
jhoblitt
Message:

large database schema change -> add airmass, ra, decl, exp_time, & background to exps
several memory leaks
add some transactions to p0search & p2search
fix p2search -done's handling of p2Done* tables

File:
1 edited

Legend:

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

    r8076 r8120  
    422422        rawExp->imfiles,
    423423        rawExp->filter,
    424         rawExp->stats
     424        rawExp->airmass,
     425        rawExp->ra,
     426        rawExp->decl,
     427        rawExp->exp_time,
     428        rawExp->background
    425429    );
    426430}
     
    604608        return false;
    605609    }
    606     psString stats = psMetadataLookupStr(&status, config->args, "-stats");
    607     if (!status) {
    608         psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -stats");
    609         return false;
    610     }
    611     if (!stats) {
    612         psError(PS_ERR_UNKNOWN, true, "-stats is required");
    613         return false;
    614     }
    615610    psString recipe = psMetadataLookupStr(&status, config->args, "-recip");
    616611    if (!status) {
     
    645640    // create a new detProcessedImfile object
    646641    detProcessedImfileRow *detRow = detProcessedImfileRowAlloc(
    647         (psS32)atol(det_id), exp_id, class_id, uri, stats, recipe
     642        (psS32)atol(det_id), exp_id, class_id, uri, recipe
    648643    );   
    649644    psFree(rawImfiles);
     
    921916    PS_ASSERT_PTR_NON_NULL(config, false);
    922917
    923     // det_id, class_id, uri, stats, & recipe are required
     918    // det_id, class_id, uri, & recipe are required
    924919    bool status = false;
    925920    psString det_id = psMetadataLookupStr(&status, config->args, "-det_id");
     
    948943    if (!uri) {
    949944        psError(PS_ERR_UNKNOWN, true, "-uri is required");
    950         return false;
    951     }
    952     psString stats = psMetadataLookupStr(&status, config->args, "-stats");
    953     if (!status) {
    954         psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -stats");
    955         return false;
    956     }
    957     if (!stats) {
    958         psError(PS_ERR_UNKNOWN, true, "-stats is required");
    959945        return false;
    960946    }
     
    1010996    // create a new detStackedImfile object
    1011997    detStackedImfileRow *stackedImfile = detStackedImfileRowAlloc(
    1012         (psS32)atol(det_id), iteration, class_id, uri, stats, recipe
     998        (psS32)atol(det_id), iteration, class_id, uri, recipe
    1013999    );   
    10141000
     
    12701256    PS_ASSERT_PTR_NON_NULL(config, false);
    12711257 
    1272     // det_id, class_id, uri, stats, & recipe are required
     1258    // det_id, class_id, uri, & recipe are required
    12731259    bool status = false;
    12741260    psString det_id = psMetadataLookupStr(&status, config->args, "-det_id");
     
    12971283    if (!uri) {
    12981284        psError(PS_ERR_UNKNOWN, true, "-uri is required");
    1299         return false;
    1300     }
    1301     psString stats = psMetadataLookupStr(&status, config->args, "-stats");
    1302     if (!status) {
    1303         psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -stats");
    1304         return false;
    1305     }
    1306     if (!stats) {
    1307         psError(PS_ERR_UNKNOWN, true, "-stats is required");
    13081285        return false;
    13091286    }
     
    13671344    // create a new detNormalizedImfile object
    13681345    detNormalizedImfileRow *masterImfile = detNormalizedImfileRowAlloc(
    1369         (psS32)atol(det_id), iteration, class_id, uri, stats, recipe
     1346        (psS32)atol(det_id), iteration, class_id, uri, recipe
    13701347    );   
    13711348
     
    15411518    PS_ASSERT_PTR_NON_NULL(config, false);
    15421519
    1543     // det_id, exp_id, class_id, stats, & recipe are required
     1520    // det_id, exp_id, class_id, & recipe are required
    15441521    bool status = false;
    15451522    psString det_id = psMetadataLookupStr(&status, config->args, "-det_id");
     
    15681545    if (!class_id) {
    15691546        psError(PS_ERR_UNKNOWN, true, "-class_id is required");
    1570         return false;
    1571     }
    1572     psString stats = psMetadataLookupStr(&status, config->args, "-stats");
    1573     if (!status) {
    1574         psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -stats");
    1575         return false;
    1576     }
    1577     if (!stats) {
    1578         psError(PS_ERR_UNKNOWN, true, "-stats is required");
    15791547        return false;
    15801548    }
     
    16491617                exp_id,
    16501618                class_id,
    1651                 stats,
    16521619                recipe
    16531620            );
     
    17041671    PS_ASSERT_PTR_NON_NULL(config, false);
    17051672 
    1706     // det_id, exp_id, stats, & recipe are required
     1673    // det_id, exp_id, & recipe are required
    17071674    bool status = false;
    17081675    psString det_id = psMetadataLookupStr(&status, config->args, "-det_id");
     
    17221689    if (!exp_id) {
    17231690        psError(PS_ERR_UNKNOWN, true, "-exp_id is required");
    1724         return false;
    1725     }
    1726     psString stats = psMetadataLookupStr(&status, config->args, "-stats");
    1727     if (!status) {
    1728         psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -stats");
    1729         return false;
    1730     }
    1731     if (!stats) {
    1732         psError(PS_ERR_UNKNOWN, true, "-stats is required");
    17331691        return false;
    17341692    }
     
    17891747                iteration,
    17901748                exp_id,
    1791                 stats,
    17921749                recipe,
    17931750                accept
     
    20992056            inputExp->imfiles,
    21002057            inputExp->filter,
    2101             inputExp->stats
     2058            inputExp->airmass,
     2059            inputExp->ra,
     2060            inputExp->decl,
     2061            inputExp->exp_time,
     2062            inputExp->background
    21022063        );
    21032064        psArrayAdd(newInputExps, 0, newInputExp);
Note: See TracChangeset for help on using the changeset viewer.