Commit 98dab9c56ae35d92a49cb18a4837562588bb35ab

Authored by knodlseder
1 parent 09acedb1

use hascolumn() instead of has() to detect a FITS table column

Showing 1 changed file with 4 additions and 4 deletions
src/ctselect/ctselect.cpp
@@ -586,22 +586,22 @@ std::string ctselect::check_infile(const std::string& filename) const @@ -586,22 +586,22 @@ std::string ctselect::check_infile(const std::string& filename) const
586 std::vector<std::string> missing; 586 std::vector<std::string> missing;
587 587
588 // Check for existence of TIME column 588 // Check for existence of TIME column
589 - if (!table->has("TIME")) { 589 + if (!table->hascolumn("TIME")) {
590 missing.push_back("TIME"); 590 missing.push_back("TIME");
591 } 591 }
592 592
593 // Check for existence of ENERGY column 593 // Check for existence of ENERGY column
594 - if (!table->has("ENERGY")) { 594 + if (!table->hascolumn("ENERGY")) {
595 missing.push_back("ENERGY"); 595 missing.push_back("ENERGY");
596 } 596 }
597 597
598 // Check for existence of RA column 598 // Check for existence of RA column
599 - if (!table->has("RA")) { 599 + if (!table->hascolumn("RA")) {
600 missing.push_back("RA"); 600 missing.push_back("RA");
601 } 601 }
602 602
603 // Check for existence of DEC column 603 // Check for existence of DEC column
604 - if (!table->has("DEC")) { 604 + if (!table->hascolumn("DEC")) {
605 missing.push_back("DEC"); 605 missing.push_back("DEC");
606 } 606 }
607 607