From 98dab9c56ae35d92a49cb18a4837562588bb35ab Mon Sep 17 00:00:00 2001 From: knodlseder <> Date: Tue, 8 Nov 2011 21:31:16 +0000 Subject: [PATCH] use hascolumn() instead of has() to detect a FITS table column --- src/ctselect/ctselect.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ctselect/ctselect.cpp b/src/ctselect/ctselect.cpp index 501a3b4..3ec2674 100644 --- a/src/ctselect/ctselect.cpp +++ b/src/ctselect/ctselect.cpp @@ -586,22 +586,22 @@ std::string ctselect::check_infile(const std::string& filename) const std::vector missing; // Check for existence of TIME column - if (!table->has("TIME")) { + if (!table->hascolumn("TIME")) { missing.push_back("TIME"); } // Check for existence of ENERGY column - if (!table->has("ENERGY")) { + if (!table->hascolumn("ENERGY")) { missing.push_back("ENERGY"); } // Check for existence of RA column - if (!table->has("RA")) { + if (!table->hascolumn("RA")) { missing.push_back("RA"); } // Check for existence of DEC column - if (!table->has("DEC")) { + if (!table->hascolumn("DEC")) { missing.push_back("DEC"); } -- libgit2 0.21.4