ewoksxrdct.tests.test_read_fscan2d#

Functions

ai_file(tmp_path_factory)

An azimuthal-integration output with one frame per scan point, built once and shared across tests since they only ever read it.

test_run_frame_count_mismatch_raises(tmp_path)

An integration output covering only part of the scan raises ValueError.

test_run_motor_mismatch_raises(ai_file)

Either rotation_motor_name or translation_motor_name does not match the fast/slow motors recorded for the scan raises a ValueError.

test_run_point_count_mismatch_raises(...)

The recorded array length not matching fast_npoints * slow_npoints raises a ValueError.

test_run_reads_raw_data_rotation_is_fast_motor(ai_file)

The caller declares the recorded fast motor as the rotation axis: raw arrays pass through unreshaped, and grid info uses the bin-centered formula for rotation, the plain inclusive-endpoint formula for translation.

test_run_reads_raw_data_rotation_is_slow_motor(ai_file)

The caller declares the recorded fast motor as the translation axis instead, which is the physical case for this scan: the grid info assignment swaps accordingly, still with no reshaping of the raw arrays.

test_run_wrong_integration_path_raises(ai_file)

A radial axis or intensity HDF5 path that does not exist raises ValueError.