1 #include "catch2/catch_all.hpp"
3 #include "purify/config.h"
7 #include "purify/directories.h"
91 const std::string fits_name =
"test_image.fits";
92 const t_real mean_frequency = 123;
93 const t_real cell_x = 5;
94 const t_real cell_y = 2;
96 const t_real dec = 98;
97 const std::string pix_units =
"Jy/PIXEL";
98 const t_real channels_total = 2;
99 const t_real channel_width = 11;
101 const int niters = 10;
102 const bool hasconverged =
true;
103 const t_real relative_variation = 1e-3;
104 const t_real residual_convergence = 1e-4;
105 const t_real epsilon = 10;
123 fits_name, pix_units, channels_total, ra, dec,
stokes::I, cell_x, cell_y, mean_frequency,
124 channel_width, niters, hasconverged, relative_variation, residual_convergence, epsilon);
125 CHECK(header_test == header);
128 channel_width, niters, hasconverged,
129 relative_variation, residual_convergence, epsilon));
132 mean_frequency, channel_width, niters,
133 hasconverged, relative_variation,
134 residual_convergence, epsilon));
136 stokes::Q, cell_x, cell_y, mean_frequency,
137 channel_width, niters, hasconverged,
138 relative_variation, residual_convergence, epsilon));
#define CHECK(CONDITION, ERROR)
#define CHECK_THROWS(STATEMENT, ERROR)
const std::map< stokes, t_int > stokes_int
const std::map< std::string, stokes > stokes_string