ewoksxas.tasks.tests.test_normalize#

Functions

post_edge_avg(table[, e0, decimals])

pre_edge_avg(table[, e0, decimals])

test_energy_exponent_doesnt_affect_flattened_array(...)

Skewed post-edge by nvict is accounted for by the make_flat subtraction.

test_energy_exponent_extreme(fe_foil_data)

Test nvict with bad / unexpected parameters, make_flat == False.

test_energy_exponent_normal(fe_foil_data)

Test nvict with normal / expected parameters, make_flat == False.

test_make_flat_extreme(fe_foil_data)

Test make_flat == False with bad / unrealistic / unexpected parameters.

test_make_flat_normal(fe_foil_data)

Test make_flat == False with normal / expected parameters.

test_normalize(fe_foil_data)

Test normalize task with default parameters.

test_postedge_order_extreme(fe_foil_data)

Postedge order changes post-edge line-shape, strongly affected by bad limits.

test_postedge_order_normal(fe_foil_data)

Test nnorm with normal / expected parameters.

test_postedge_params(fe_foil_data)

Test normalize task changing only norm1 and norm2.

test_preedge_params(fe_foil_data)

Test normalize task changing only pre1 and pre2.

test_raw_data(fe_foil_data)

Verify the expected dataset is loaded and is not already normalized.