Loading data-access/engine/src/common/src/fitsfiles.cpp +2 −4 Original line number Diff line number Diff line Loading @@ -217,7 +217,6 @@ int fitsfiles::mod_value(string filename, string token, string keyvalue) if (!fits_open_file(&fptr, filename.c_str(), iomode, &status)) { //if (fits_read_card(fptr, keyname.c_str(), card, &status)) if (fits_read_str(fptr,token.c_str(), card, &status)) { printf("Keyword does not exist\n"); Loading @@ -225,7 +224,6 @@ int fitsfiles::mod_value(string filename, string token, string keyvalue) comment[0] = '\0'; status = 0; /* reset status after error */ strcpy(card,token.c_str()); //goto f_end; } else { Loading Loading @@ -267,7 +265,7 @@ int fitsfiles::mod_value(string filename, string token, string keyvalue) printf("%s\n",card); } } f_end: fits_close_file(fptr, &status); } Loading Loading @@ -365,7 +363,7 @@ string fitsfiles::append_card_if_not_in_header(string header, const vector<fits_ // NOT: checks only for _exact_ match on card-key: 'xxxxx____=' ? 'yyyyy____=' bool is_in_header(string& hdr, string& card) { for(int offset=0; offset<hdr.size(); offset+=80) for(string::size_type offset=0; offset<hdr.size(); offset+=80) { string hdr_card_key{ hdr.substr(offset,10) }; Loading Loading
data-access/engine/src/common/src/fitsfiles.cpp +2 −4 Original line number Diff line number Diff line Loading @@ -217,7 +217,6 @@ int fitsfiles::mod_value(string filename, string token, string keyvalue) if (!fits_open_file(&fptr, filename.c_str(), iomode, &status)) { //if (fits_read_card(fptr, keyname.c_str(), card, &status)) if (fits_read_str(fptr,token.c_str(), card, &status)) { printf("Keyword does not exist\n"); Loading @@ -225,7 +224,6 @@ int fitsfiles::mod_value(string filename, string token, string keyvalue) comment[0] = '\0'; status = 0; /* reset status after error */ strcpy(card,token.c_str()); //goto f_end; } else { Loading Loading @@ -267,7 +265,7 @@ int fitsfiles::mod_value(string filename, string token, string keyvalue) printf("%s\n",card); } } f_end: fits_close_file(fptr, &status); } Loading Loading @@ -365,7 +363,7 @@ string fitsfiles::append_card_if_not_in_header(string header, const vector<fits_ // NOT: checks only for _exact_ match on card-key: 'xxxxx____=' ? 'yyyyy____=' bool is_in_header(string& hdr, string& card) { for(int offset=0; offset<hdr.size(); offset+=80) for(string::size_type offset=0; offset<hdr.size(); offset+=80) { string hdr_card_key{ hdr.substr(offset,10) }; Loading