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 under if __name__ == "__main__":.

Parameters:
  • dsfile (str) – DataSet file, e.g. from write_dataset()

  • nproc (int | None, default: None) – Number of worker processes. None lets ImageD11 use every available core.

  • algorithm (str, default: 'lmlabel') – Labelling options for ImageD11, as in its 0_segment_and_label notebook

  • wtmax (int, default: 70000) – Labelling options for ImageD11, as in its 0_segment_and_label notebook

Returns:

pksfile (str) – Path of the peaks table