Skip to content

Commit

Permalink
modify
Browse files Browse the repository at this point in the history
  • Loading branch information
acdo2002 committed Jul 4, 2024
1 parent dc7b543 commit e87492a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/ImageData/CartaFitsImage.cc
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,8 @@ fitsfile* CartaFitsImage::OpenFile() {
char err_text[30];
fits_get_errstatus(status, err_text);
std::string error(err_text);
throw(casacore::AipsError("Error opening FITS file: " + error));
std::cout << "\n Ming-Yi set Passing Point A \n";
throw(casacore::AipsError("Error opening FITS file: " + error));
}

// Advance to requested hdu
Expand Down Expand Up @@ -1296,9 +1296,9 @@ void CartaFitsImage::ReadBeamsTable(casacore::ImageInfo& image_info) {
fits_open_file(&fptr, _filename.c_str(), 0, &status);

if (status) {
throw(casacore::AipsError("Error opening FITS file."));
std::cout << "\n Ming-Yi set Passing Point B \n";
std::cout << status << "\n";
throw(casacore::AipsError("Error opening FITS file."));
}

// Open binary table extension with name BEAMS
Expand Down
2 changes: 1 addition & 1 deletion src/ImageData/FitsLoader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,9 @@ bool FitsLoader::Is64BitBeamsTable(const std::string& filename) {
fits_open_file(&fptr, filename.c_str(), 0, &status);

if (status) {
spdlog::error("Error opening FITS file.");
std::cout << "\n Ming-Yi set Passing Point C \n";
std::cout << status << "\n";
spdlog::error("Error opening FITS file.");
return false;
}

Expand Down

0 comments on commit e87492a

Please sign in to comment.