Skip to main content
Similarity trajectory polling tracks how the RHEED pattern evolves over time relative to reference frames. It follows the same patterns as time series polling but uses dedicated functions from atomscale.similarity.

When to use trajectory polling

Use trajectory polling when you need to:
  • Track how the diffraction pattern changes during growth
  • Detect when the pattern stabilizes or diverges from a reference
  • Implement automatic stop conditions based on similarity thresholds

Setup

The source_id parameter accepts either a data ID or a physical sample ID.

Synchronous polling

Auto-stop on threshold

Use the until parameter to stop polling when a condition is met. By default, trajectory polling stops automatically when no trajectory is active.

Background thread polling

For integration with instrument control software:

Async polling

Error handling

Pass an on_error handler to continue polling through transient failures:

Result structure

Each poll yields a DataFrame with a multi-level index and the following columns:

Next steps

Poll Time Series

Monitor raw time series updates.

Stream RHEED

Set up RHEED streaming from your instrument.