Defines | |
#define | MODULE_ID "XSH_COMPUTE_RESPONSE" |
#define | MODULE_ID "XSH_SUBTRACT_BACKGROUND" |
Enumerations | |
enum | { ARM_OPT, DBG_OPT } |
enum | { NB_Y_OPT, RADIUS_X_OPT, RADIUS_Y_OPT, HELP_OPT, MAX_FRAC_GRID_OPT, METHOD_OPT, SMOOTH_X_OPT, SMOOTH_Y_OPT, MIN_FRAC_OPT } |
Functions | |
static void | Help (void) |
static void | HandleOptions (int argc, char **argv) |
int | main (int argc, char **argv) |
Unit test of XSH_COMPUTE_RESPONSE. | |
static void | HandleOptions (int argc, char **argv, xsh_background_param *backg_par) |
Variables | |
XSH_ARM | TheArm = XSH_ARM_VIS |
char | DbgLevel [8] |
static struct option | LongOptions [] |
static const char * | Options = "?" |
static const char * | Options = "" |
static struct option | long_options [] |
#define MODULE_ID "XSH_SUBTRACT_BACKGROUND" |
Definition at line 55 of file test-xsh_subtract_background.c.
#define MODULE_ID "XSH_COMPUTE_RESPONSE" |
Definition at line 57 of file test-xsh_compute_response.c.
anonymous enum |
Definition at line 62 of file test-xsh_compute_response.c.
anonymous enum |
NB_Y_OPT | |
RADIUS_X_OPT | |
RADIUS_Y_OPT | |
HELP_OPT | |
MAX_FRAC_GRID_OPT | |
METHOD_OPT | |
SMOOTH_X_OPT | |
SMOOTH_Y_OPT | |
MIN_FRAC_OPT |
Definition at line 58 of file test-xsh_subtract_background.c.
static void HandleOptions | ( | int | argc, | |
char ** | argv, | |||
xsh_background_param * | backg_par | |||
) | [static] |
Definition at line 91 of file test-xsh_subtract_background.c.
References Help(), long_options, NB_Y_OPT, Options, xsh_background_param::radius_x, RADIUS_X_OPT, xsh_background_param::radius_y, RADIUS_Y_OPT, and xsh_background_param::sampley.
Referenced by main().
static void HandleOptions | ( | int | argc, | |
char ** | argv | |||
) | [static] |
Definition at line 85 of file test-xsh_compute_response.c.
References ARM_OPT, DBG_OPT, DbgLevel, Help(), LongOptions, Options, TheArm, and xsh_arm_get().
static void Help | ( | void | ) | [static] |
Definition at line 75 of file test-xsh_subtract_background.c.
References TEST_END.
Referenced by HandleOptions().
int main | ( | int | argc, | |
char ** | argv | |||
) |
Unit test of XSH_COMPUTE_RESPONSE.
Unit test of XSH_PREPARE.
Test the Data Reduction Library function XSH_COMPUTE_RESPONSE
Test the Data Reduction Library function XSH_PREPARE
Definition at line 127 of file test-xsh_subtract_background.c.
References check, xsh_background_param::debug, HandleOptions(), Help(), instrument, MODULE_ID, xsh_background_param::radius_x, xsh_background_param::radius_y, xsh_background_param::sampley, sof_to_frameset(), TEST_END, TESTS_INIT, TESTS_XSH_FRAME_CREATE, XSH_DEBUG_LEVEL_MEDIUM, xsh_debug_level_set(), xsh_dfs_set_groups(), xsh_error_dump, xsh_find_order_tab_edges(), xsh_free_frame(), xsh_free_frameset(), xsh_instrument_free(), xsh_msg, and xsh_subtract_background().
char DbgLevel[8] |
Definition at line 60 of file test-xsh_compute_response.c.
Referenced by HandleOptions().
struct option long_options[] [static] |
{ {"nb-y", required_argument, 0, NB_Y_OPT}, {"radius-x", required_argument, 0, RADIUS_X_OPT}, {"radius-y", required_argument, 0, RADIUS_Y_OPT}, {"help", 0, 0, HELP_OPT}, {0, 0, 0, 0} }
Definition at line 65 of file test-xsh_subtract_background.c.
Referenced by HandleOptions().
struct option LongOptions[] [static] |
{ {"arm", required_argument, 0, ARM_OPT}, {"debug-level", required_argument, 0, DBG_OPT}, {NULL, 0, 0, 0} }
Definition at line 66 of file test-xsh_compute_response.c.
Referenced by HandleOptions().
const char* Options = "" [static] |
Definition at line 63 of file test-xsh_subtract_background.c.
Referenced by HandleOptions().
const char* Options = "?" [static] |
Definition at line 71 of file test-xsh_compute_response.c.
Referenced by HandleOptions().
Definition at line 59 of file test-xsh_compute_response.c.
Referenced by HandleOptions().