ewoksxrdct.tests.test_read_aeroystepscan#

Functions

ai_file(tmp_path_factory)

An azimuthal-integration output with one frame per scan point, built once and shared across tests since the tests 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_point_count_mismatch_raises(...)

The recorded array length not matching the point count derived from fscan_parameters raises a ValueError.

test_run_reads_raw_data(ai_file)

Raw arrays pass through unreshaped and unsorted, and grid info is derived from fscan_parameters using the bin-centered formula for rotation and the plain inclusive-endpoint formula for translation.

test_run_wrong_integration_path_raises(ai_file)

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

test_run_wrong_motor_name_raises(ai_file)

A motor name that doesn't exist in the bliss master file raises ValueError.