Changeset 15533
- Timestamp:
- Nov 8, 2007, 5:34:06 PM (19 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
-
dbconfig/changes.txt (modified) (1 diff)
-
dbconfig/config.md (modified) (1 diff)
-
dbconfig/warp.md (modified) (2 diffs)
-
ippdb/src/ippdb.c (modified) (9 diffs)
-
ippdb/src/ippdb.h (modified) (3 diffs)
-
ippdb/tests/alloc.c (modified) (1 diff)
-
ippdb/tests/metadatafromobject.c (modified) (1 diff)
-
ippdb/tests/objectfrommetadata.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dbconfig/changes.txt
r15531 r15533 28 28 29 29 ??? 30 alter table warpSkyfile add column i ngoretinyint after good_frac;30 alter table warpSkyfile add column ignored tinyint after good_frac; -
trunk/dbconfig/config.md
r15342 r15533 2 2 pkg_name STR ippdb 3 3 pkg_namespace STR ippdb 4 pkg_version STR 1.1.2 84 pkg_version STR 1.1.29 5 5 END -
trunk/dbconfig/warp.md
r15530 r15533 1 # $Id: warp.md,v 1. 8 2007-11-09 02:56:46jhoblitt Exp $1 # $Id: warp.md,v 1.9 2007-11-09 03:34:05 jhoblitt Exp $ 2 2 3 3 # … … 51 51 bg_stdev F64 0.0 52 52 good_frac F64 0.0 # Key 53 ignore BOOL f # Key53 ignored BOOL f # Key 54 54 fault S16 0 # Key 55 55 END -
trunk/ippdb/src/ippdb.c
r15530 r15533 9592 9592 static void warpSkyfileRowFree(warpSkyfileRow *object); 9593 9593 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)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 ignored, psS16 fault) 9595 9595 { 9596 9596 warpSkyfileRow *_object; … … 9607 9607 _object->bg_stdev = bg_stdev; 9608 9608 _object->good_frac = good_frac; 9609 _object->ignore = ignore;9609 _object->ignored = ignored; 9610 9610 _object->fault = fault; 9611 9611 … … 9664 9664 return false; 9665 9665 } 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"); 9668 9668 psFree(md); 9669 9669 return false; … … 9687 9687 } 9688 9688 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)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 ignored, psS16 fault) 9690 9690 { 9691 9691 psMetadata *md = psMetadataAlloc(); … … 9730 9730 return false; 9731 9731 } 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"); 9734 9734 psFree(md); 9735 9735 return false; … … 9763 9763 bool warpSkyfileInsertObject(psDB *dbh, warpSkyfileRow *object) 9764 9764 { 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); 9766 9766 } 9767 9767 … … 9876 9876 return false; 9877 9877 } 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"); 9880 9880 psFree(md); 9881 9881 return false; … … 9935 9935 return false; 9936 9936 } 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"); 9940 9940 return false; 9941 9941 } … … 9946 9946 } 9947 9947 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); 9949 9949 } 9950 9950 psArray *warpSkyfileSelectRowObjects(psDB *dbh, const psMetadata *where, unsigned long long limit) -
trunk/ippdb/src/ippdb.h
r15530 r15533 4735 4735 psF64 bg_stdev; 4736 4736 psF64 good_frac; 4737 bool ignore ;4737 bool ignored; 4738 4738 psS16 fault; 4739 4739 } warpSkyfileRow; … … 4753 4753 psF64 bg_stdev, 4754 4754 psF64 good_frac, 4755 bool ignore ,4755 bool ignored, 4756 4756 psS16 fault 4757 4757 ); … … 4792 4792 psF64 bg_stdev, 4793 4793 psF64 good_frac, 4794 bool ignore ,4794 bool ignored, 4795 4795 psS16 fault 4796 4796 ); -
trunk/ippdb/tests/alloc.c
r15530 r15533 1070 1070 exit(EXIT_FAILURE); 1071 1071 } 1072 if (!object->ignore == true) {1072 if (!object->ignored == true) { 1073 1073 psFree(object); 1074 1074 exit(EXIT_FAILURE); -
trunk/ippdb/tests/metadatafromobject.c
r15530 r15533 1221 1221 exit(EXIT_FAILURE); 1222 1222 } 1223 if (!psMetadataLookupBool(&status, md, "ignore ") == true) {1223 if (!psMetadataLookupBool(&status, md, "ignored") == true) { 1224 1224 psFree(md); 1225 1225 exit(EXIT_FAILURE); -
trunk/ippdb/tests/objectfrommetadata.c
r15530 r15533 1870 1870 exit(EXIT_FAILURE); 1871 1871 } 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)) { 1873 1873 psFree(md); 1874 1874 exit(EXIT_FAILURE); … … 1917 1917 exit(EXIT_FAILURE); 1918 1918 } 1919 if (!object->ignore == true) {1919 if (!object->ignored == true) { 1920 1920 psFree(object); 1921 1921 exit(EXIT_FAILURE);
Note:
See TracChangeset
for help on using the changeset viewer.
