IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 8, 2007, 5:34:06 PM (19 years ago)
Author:
jhoblitt
Message:

VERSION 1.1.29 (again)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippdb/src/ippdb.c

    r15530 r15533  
    95929592static void warpSkyfileRowFree(warpSkyfileRow *object);
    95939593
    9594 warpSkyfileRow *warpSkyfileRowAlloc(psS64 warp_id, const char *skycell_id, const char *tess_id, const char *uri, const char *path_base, psF64 bg, psF64 bg_stdev, psF64 good_frac, bool ignore, psS16 fault)
     9594warpSkyfileRow *warpSkyfileRowAlloc(psS64 warp_id, const char *skycell_id, const char *tess_id, const char *uri, const char *path_base, psF64 bg, psF64 bg_stdev, psF64 good_frac, bool ignored, psS16 fault)
    95959595{
    95969596    warpSkyfileRow  *_object;
     
    96079607    _object->bg_stdev = bg_stdev;
    96089608    _object->good_frac = good_frac;
    9609     _object->ignore = ignore;
     9609    _object->ignored = ignored;
    96109610    _object->fault = fault;
    96119611
     
    96649664        return false;
    96659665    }
    9666     if (!psMetadataAdd(md, PS_LIST_TAIL, "ignore", PS_DATA_BOOL, "Key", 0)) {
    9667         psError(PS_ERR_UNKNOWN, false, "failed to add item ignore");
     9666    if (!psMetadataAdd(md, PS_LIST_TAIL, "ignored", PS_DATA_BOOL, "Key", 0)) {
     9667        psError(PS_ERR_UNKNOWN, false, "failed to add item ignored");
    96689668        psFree(md);
    96699669        return false;
     
    96879687}
    96889688
    9689 bool warpSkyfileInsert(psDB * dbh, psS64 warp_id, const char *skycell_id, const char *tess_id, const char *uri, const char *path_base, psF64 bg, psF64 bg_stdev, psF64 good_frac, bool ignore, psS16 fault)
     9689bool warpSkyfileInsert(psDB * dbh, psS64 warp_id, const char *skycell_id, const char *tess_id, const char *uri, const char *path_base, psF64 bg, psF64 bg_stdev, psF64 good_frac, bool ignored, psS16 fault)
    96909690{
    96919691    psMetadata *md = psMetadataAlloc();
     
    97309730        return false;
    97319731    }
    9732     if (!psMetadataAdd(md, PS_LIST_TAIL, "ignore", PS_DATA_BOOL, NULL, ignore)) {
    9733         psError(PS_ERR_UNKNOWN, false, "failed to add item ignore");
     9732    if (!psMetadataAdd(md, PS_LIST_TAIL, "ignored", PS_DATA_BOOL, NULL, ignored)) {
     9733        psError(PS_ERR_UNKNOWN, false, "failed to add item ignored");
    97349734        psFree(md);
    97359735        return false;
     
    97639763bool warpSkyfileInsertObject(psDB *dbh, warpSkyfileRow *object)
    97649764{
    9765     return warpSkyfileInsert(dbh, object->warp_id, object->skycell_id, object->tess_id, object->uri, object->path_base, object->bg, object->bg_stdev, object->good_frac, object->ignore, object->fault);
     9765    return warpSkyfileInsert(dbh, object->warp_id, object->skycell_id, object->tess_id, object->uri, object->path_base, object->bg, object->bg_stdev, object->good_frac, object->ignored, object->fault);
    97669766}
    97679767
     
    98769876        return false;
    98779877    }
    9878     if (!psMetadataAdd(md, PS_LIST_TAIL, "ignore", PS_DATA_BOOL, NULL, object->ignore)) {
    9879         psError(PS_ERR_UNKNOWN, false, "failed to add item ignore");
     9878    if (!psMetadataAdd(md, PS_LIST_TAIL, "ignored", PS_DATA_BOOL, NULL, object->ignored)) {
     9879        psError(PS_ERR_UNKNOWN, false, "failed to add item ignored");
    98809880        psFree(md);
    98819881        return false;
     
    99359935        return false;
    99369936    }
    9937     bool ignore = psMetadataLookupBool(&status, md, "ignore");
    9938     if (!status) {
    9939         psError(PS_ERR_UNKNOWN, true, "failed to lookup value for item ignore");
     9937    bool ignored = psMetadataLookupBool(&status, md, "ignored");
     9938    if (!status) {
     9939        psError(PS_ERR_UNKNOWN, true, "failed to lookup value for item ignored");
    99409940        return false;
    99419941    }
     
    99469946    }
    99479947
    9948     return warpSkyfileRowAlloc(warp_id, skycell_id, tess_id, uri, path_base, bg, bg_stdev, good_frac, ignore, fault);
     9948    return warpSkyfileRowAlloc(warp_id, skycell_id, tess_id, uri, path_base, bg, bg_stdev, good_frac, ignored, fault);
    99499949}
    99509950psArray *warpSkyfileSelectRowObjects(psDB *dbh, const psMetadata *where, unsigned long long limit)
Note: See TracChangeset for help on using the changeset viewer.