From 611f99440ad543dbf09fcd6d379caaafb861784d Mon Sep 17 00:00:00 2001 From: knodlseder <> Date: Wed, 17 Nov 2010 16:12:23 +0000 Subject: [PATCH] update for nex GFits interface --- src/ctselect/ctselect.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ctselect/ctselect.cpp b/src/ctselect/ctselect.cpp index 54a0a6d..2143d50 100644 --- a/src/ctselect/ctselect.cpp +++ b/src/ctselect/ctselect.cpp @@ -265,7 +265,7 @@ void ctselect::copy(void) // Optional perform Bit column testing #if BIT_COLUMN_TEST - GFitsTableBitCol* ptr = (GFitsTableBitCol*)file.hdu("EVENTS")->column("TELMASK"); + GFitsTableBitCol* ptr = (GFitsTableBitCol*)file.table("EVENTS")->column("TELMASK"); for (int i = 0; i < ptr->length(); ++i) { std::cout << i << ": "; for (int k = 0; k < ptr->number(); ++k) @@ -287,7 +287,7 @@ void ctselect::copy(void) // Optional perform String column testing #if STRING_COLUMN_TEST - GFitsTableStringCol* ptr = (GFitsTableStringCol*)file.hdu("ANALYSIS")->column("UNIT"); + GFitsTableStringCol* ptr = (GFitsTableStringCol*)file.table("ANALYSIS")->column("UNIT"); std::cout << "Anynul: " << ptr->anynul() << std::endl; for (int i = 0; i < ptr->length(); ++i) { std::cout << "\"" << ptr->string(i) << "\"" << std::endl; @@ -301,7 +301,7 @@ void ctselect::copy(void) // Optional perform String column testing #if STRING_COLUMN_TEST GFits file2(m_outfile); - GFitsTableStringCol* ptr2 = (GFitsTableStringCol*)file2.hdu("ANALYSIS")->column("UNIT"); + GFitsTableStringCol* ptr2 = (GFitsTableStringCol*)file2.table("ANALYSIS")->column("UNIT"); std::cout << "Anynul: " << ptr2->anynul() << std::endl; for (int i = 0; i < ptr2->length(); ++i) { std::cout << "\"" << ptr2->string(i) << "\"" << std::endl; -- libgit2 0.21.4