- Timestamp:
- May 21, 2021, 2:04:53 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/relphot.20210521/src/BrightCatalog.c
r40291 r41606 12 12 myAssert (!strcmp(type, #TYPE), "wrong column type"); 13 13 14 // XXX double check the header extname values for each table15 // XXX make sure we free things as we can16 // XXX make sure we close files as we can17 // XXX handle free and close on error return as well18 14 BrightCatalog *BrightCatalogLoad(char *filename) { 19 15 … … 622 618 int BrightCatalogSplitFree (CatalogSplitter *catalogs) { 623 619 624 // XXX don't free the catalogs : 625 // for (i = 0; i < NCATALOG; i++) { 626 // free (catalogs->catalog[i].averageT); 627 // free (catalogs->catalog[i].measureT); 628 // free (catalogs->catalog[i].secfilt); 629 // } 630 // free (catalogs->catalog); 631 620 // don't free the catalogs : free elsewhere 632 621 free (catalogs->catIDs); 633 622 free (catalogs->NAVERAGE); … … 652 641 catIDmax = MAX(catIDmax, bcatalog->average[i].catID); 653 642 } 654 // XXX validate the measure ID range here655 643 656 644 int maxIDold = catalogs->maxID; … … 746 734 747 735 // assign the measures to the corresponding catalog 748 // XXX what about averef and related links? Do I need them?749 736 for (i = 0; i < bcatalog->Nmeasure; i++) { 750 737 int ID = bcatalog->measure[i].catID;
Note:
See TracChangeset
for help on using the changeset viewer.
