Skip to content

Commit 144f187

Browse files
committed
Updated to latest phy++ API
1 parent 34f6018 commit 144f187

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/egg-genmap.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ int phypp_main(int argc, char* argv[]) {
8787
} cat;
8888

8989
uint_t idb;
90-
if (end_with(cat_file, ".fits")) {
90+
if (ends_with(cat_file, ".fits")) {
9191
fits::input_table table(cat_file);
9292
table.read_columns(ftable(cat.ra, cat.dec));
9393
table.read_column(fits::dim_promote, "flux", cat.flux);

src/egg-gennoise.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ int phypp_main(int argc, char* argv[]) {
4646
}
4747

4848
read_args(argc, argv, arg_list(
49-
name(tseed, "seed"), out, name(psf_file, "psf"), name(astrometry, "astro"), aspix, rms,
49+
name(tseed, "seed"), out, name(psf_file, "psf"), name(astrometry, "astro"), aspix, rms,
5050
beam_smoothed, smooth_fwhm, list_psfs, verbose, make_err, make_cov, clip_borders, save_dist,
5151
name(cat_file, "cat"), name(tdouble, "double")
5252
));
@@ -82,7 +82,7 @@ int phypp_main(int argc, char* argv[]) {
8282
file::mkdir(file::get_directory(out));
8383

8484
std::string out_base = file::remove_extension(out);
85-
if (end_with(out_base, "-noise")) {
85+
if (ends_with(out_base, "-noise")) {
8686
out_base = erase_end(out_base, "-noise");
8787
}
8888

@@ -92,7 +92,7 @@ int phypp_main(int argc, char* argv[]) {
9292
vec1d ra, dec;
9393
} cat;
9494

95-
if (end_with(cat_file, ".fits")) {
95+
if (ends_with(cat_file, ".fits")) {
9696
fits::read_table(cat_file, ftable(cat.ra, cat.dec));
9797
} else {
9898
ascii::read_table(cat_file, ascii::find_skip(cat_file), cat.ra, cat.dec);

0 commit comments

Comments
 (0)