File Exploration

TRSFX.explore.get_consistent_crystals(stream)

Find files where every frame was successfully indexed (has crystals).

Parameters:

stream (Stream) – Parsed Stream object

Returns:

List of filenames where all frames have crystals

Return type:

list[str]

TRSFX.explore.plot_peak_dist(stream, output=None, bins=50, fig_size=(10, 6))

Plot histogram of peak counts, split by hits and non-hits

Parameters:
  • stream (Stream) – Stream object containing data

  • output (Optional[str]) – Output file path for saving the plot

  • bins (int) – Number of bins for histogram

  • fig_size (tuple[int, int]) – Figure size for the plot

Returns:

Matplotlib figure object

Return type:

figure

TRSFX.explore.plot_time_series(stream, output=None, show_labels=False, fig_size=(12, 6))

Plot time series of peaks per crystal

Parameters:
  • stream (Stream) – Stream object containing data

  • output (Optional[str]) – Output file path for saving the plot

  • fig_size (tuple[int, int]) – Dimension of the figure

Returns:

Matplotlib figure object

Return type:

figure