simulate_sparse#

anri.io.simulate_sparse(path, entries, hkls, F2, geom, omega, dty, det_shape, cut=1, transmission=None, omega_motor='rot_center', dty_motor='dty', window=(3, 7, 7), batch=65536, max_frames=None)[source]#

Render every dty row of a scan and write the sparse pixels file, one row at a time.

Parameters:
Returns:

stats (dict) – Per row: “n_peaks” rendered, “n_pixels” written, and the minimum window “captured” fraction