IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15533


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

VERSION 1.1.29 (again)

Location:
trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/dbconfig/changes.txt

    r15531 r15533  
    2828
    2929???
    30 alter table warpSkyfile add column ingore tinyint after good_frac;
     30alter table warpSkyfile add column ignored tinyint after good_frac;
  • trunk/dbconfig/config.md

    r15342 r15533  
    22    pkg_name        STR     ippdb
    33    pkg_namespace   STR     ippdb
    4     pkg_version     STR     1.1.28
     4    pkg_version     STR     1.1.29
    55END
  • trunk/dbconfig/warp.md

    r15530 r15533  
    1 # $Id: warp.md,v 1.8 2007-11-09 02:56:46 jhoblitt Exp $
     1# $Id: warp.md,v 1.9 2007-11-09 03:34:05 jhoblitt Exp $
    22
    33#
     
    5151    bg_stdev    F64         0.0
    5252    good_frac   F64         0.0     # Key
    53     ignore      BOOL        f       # Key
     53    ignored     BOOL        f       # Key
    5454    fault       S16         0       # Key
    5555END
  • 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)
  • trunk/ippdb/src/ippdb.h

    r15530 r15533  
    47354735    psF64           bg_stdev;
    47364736    psF64           good_frac;
    4737     bool            ignore;
     4737    bool            ignored;
    47384738    psS16           fault;
    47394739} warpSkyfileRow;
     
    47534753    psF64           bg_stdev,
    47544754    psF64           good_frac,
    4755     bool            ignore,
     4755    bool            ignored,
    47564756    psS16           fault
    47574757);
     
    47924792    psF64           bg_stdev,
    47934793    psF64           good_frac,
    4794     bool            ignore,
     4794    bool            ignored,
    47954795    psS16           fault
    47964796);
  • trunk/ippdb/tests/alloc.c

    r15530 r15533  
    10701070            exit(EXIT_FAILURE);
    10711071        }
    1072         if (!object->ignore == true) {
     1072        if (!object->ignored == true) {
    10731073            psFree(object);
    10741074            exit(EXIT_FAILURE);
  • trunk/ippdb/tests/metadatafromobject.c

    r15530 r15533  
    12211221            exit(EXIT_FAILURE);
    12221222        }
    1223         if (!psMetadataLookupBool(&status, md, "ignore") == true) {
     1223        if (!psMetadataLookupBool(&status, md, "ignored") == true) {
    12241224            psFree(md);
    12251225            exit(EXIT_FAILURE);
  • trunk/ippdb/tests/objectfrommetadata.c

    r15530 r15533  
    18701870            exit(EXIT_FAILURE);
    18711871        }
    1872         if (!psMetadataAdd(md, PS_LIST_TAIL, "ignore", PS_DATA_BOOL, NULL, true)) {
     1872        if (!psMetadataAdd(md, PS_LIST_TAIL, "ignored", PS_DATA_BOOL, NULL, true)) {
    18731873            psFree(md);
    18741874            exit(EXIT_FAILURE);
     
    19171917            exit(EXIT_FAILURE);
    19181918        }
    1919         if (!object->ignore == true) {
     1919        if (!object->ignored == true) {
    19201920            psFree(object);
    19211921            exit(EXIT_FAILURE);
Note: See TracChangeset for help on using the changeset viewer.