darfix.tests.test_dimension#

Functions

dataset_args()

"

in_memory_dataset(tmpdir, dataset_args)

on_disk_dataset(tmpdir, dataset_args)

test_add_one_dimension(in_memory_dataset, ...)

Tests the correct add of a dimension

test_add_several_dimensions(...)

Tests the correct add of several dimensions

test_apply_2d_fit(in_memory_dataset, ...)

Tests the fit with dimensions and indices

test_apply_moments_in_memory(...)

Tests finding moments

test_apply_shift(in_memory_dataset, ...)

Tests the shift correction with dimensions and indices

test_apply_shift_along_dimension(...)

Tests the shift correction with dimensions and indices

test_clear_dimensions(in_memory_dataset, ...)

Tests the clear dimensions function

test_compute_magnification(...)

Tests fitting data in memory

test_data_reshaped_data(in_memory_dataset, ...)

Tests that data and reshaped data have same values

test_find_dimension_NiTi_1PD_002_g411_420MPa_mosalayers_2x(...)

Test 'find_dimension' with a bunch of motor position over a real use cases that used to bring troubles.

test_find_dimension_silicon_111_reflection(...)

Test 'find_dimension' with a bunch of motor position over a real use cases that used to bring troubles.

test_find_dimensions(in_memory_dataset, ...)

Tests the correct finding of the dimensions

test_find_shift(in_memory_dataset, ...)

Tests the shift detection with dimensions and indices

test_find_shift_along_dimension(...)

Tests the shift detection along a dimension

test_remove_dimension(in_memory_dataset, ...)

Tests the correct removal of a dimension

test_remove_dimensions(in_memory_dataset, ...)

Tests the correct removal of several dimensions

test_reshaped_data(in_memory_dataset, ...)

Tests the correct reshaping of the data

test_zsum(in_memory_dataset, on_disk_dataset)

Tests the shift detection with dimensions and indices