Changeset 37550
- Timestamp:
- Nov 2, 2014, 3:40:46 PM (12 years ago)
- Location:
- branches/eam_branches/ipp-20140904/Ohana/src/dvomerge/src
- Files:
-
- 3 edited
-
dvomergeUpdate_catalogs.c (modified) (1 diff)
-
dvorepairDeleteImagesByExternID.c (modified) (2 diffs)
-
dvoverify_utils.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20140904/Ohana/src/dvomerge/src/dvomergeUpdate_catalogs.c
r37512 r37550 199 199 SetProtect (FALSE); 200 200 201 if (!dvo_catalog_unlock (&outcatalog)) { 202 fprintf (stderr, "ERROR: failed to unlock catalog %s\n", outlist[0].filename[j]); 203 exit (1); 204 } 205 201 206 if (!dvo_catalog_unlink_backup (&outcatalog, TRUE)) { 202 207 fprintf (stderr, "WARNING: failed to remove backup for catalog %s\n", outlist[0].filename[j]); 203 208 } 204 209 205 dvo_catalog_unlock (&outcatalog);206 210 dvo_catalog_free (&outcatalog); 207 211 -
branches/eam_branches/ipp-20140904/Ohana/src/dvomerge/src/dvorepairDeleteImagesByExternID.c
r37526 r37550 301 301 int imageID = measure[j].imageID; 302 302 myAssert(imageID, "measure is missing an image ID"); 303 // XXX this case is valid if we have REF detections (no associated image) 303 304 304 305 int N = myIndexGetEntry(imageIDindex, imageID); 305 myAssert (N > -1, "impossible"); 306 if (N < 0) { 307 // this detection comes from a non-existant image, delete 308 Ndelete ++; 309 continue; 310 } 306 311 307 312 if (deleteImage[N]) { … … 421 426 for (i = 0; i < Nimage; i++) { 422 427 if (!image[i].parentID) continue; 423 myAssert (!strcmp(&image[i].coords.ctype[4], "-WRP"), "child with non WRP coords?"); 428 if (strcmp(&image[i].coords.ctype[4], "-WRP")) { 429 fprintf (stderr, "warning: child with non WRP coords : %s\n", image[i].name); 430 } 424 431 425 432 int n = myIndexGetEntry (imageIDindex, image[i].parentID); -
branches/eam_branches/ipp-20140904/Ohana/src/dvomerge/src/dvoverify_utils.c
r37360 r37550 238 238 } 239 239 // lensingOffset needs to be in range for each object 240 lensingOffsetOK &= ( catalog.average[i].lensingOffset < catalog.Nlensing);241 if (VERBOSE && !(catalog.average[i].lensingOffset < catalog.Nlensing)) {240 lensingOffsetOK &= (!catalog.Nlensing || (catalog.average[i].lensingOffset < catalog.Nlensing)); 241 if (VERBOSE && catalog.Nlensing && !(catalog.average[i].lensingOffset < catalog.Nlensing)) { 242 242 fprintf (stderr, "lensingOffset >= catalog.Nlensing: %d %d %d\n", i, catalog.average[i].lensingOffset, (int) catalog.Nlensing); 243 243 }
Note:
See TracChangeset
for help on using the changeset viewer.
