write_peaks_table#
- anri.io.write_peaks_table(dsfile, nproc=None, algorithm='lmlabel', wtmax=70000)[source]#
Label the sparse pixels into ImageD11’s peaks table: the last step of a simulation.
After this, the S3DXRD pipeline can start at indexing (e.g.
tomo_1_index); the DataSet makes the 2D and 4D peaks from the peaks table on demand.This runs
ImageD11.sinograms.properties.main, which uses a multiprocessing pool. Scripts that call it must do so underif __name__ == "__main__":.- Parameters:
dsfile (
str) – DataSet file, e.g. fromwrite_dataset()nproc (
int|None, default:None) – Number of worker processes.Nonelets ImageD11 use every available core.algorithm (
str, default:'lmlabel') – Labelling options for ImageD11, as in its0_segment_and_labelnotebookwtmax (
int, default:70000) – Labelling options for ImageD11, as in its0_segment_and_labelnotebook
- Returns:
pksfile (
str) – Path of the peaks table