TheDocumentation Index
Fetch the complete documentation index at: https://docs.atomscale.ai/llms.txt
Use this file to discover all available pages before exploring further.
RHEEDStreamer class lets you push RHEED frames directly from your instrument to Atomscale for live analysis. Choose between two streaming modes:
- Callback / push mode - The camera or SDK hands you fresh frames and you upload each chunk immediately
- Generator / pull mode - You already have frames buffered and want the helper to pace the upload for you
Prerequisites
numpyinstalled- RHEED frames as
uint8arrays shaped(N, H, W)or(H, W) - A stable clock so you can honor the capture cadence
Create a streamer
verbosity=4 for detailed progress output.
Callback / push mode
Use this variant when frames arrive live from the instrument. The outer loop is your acquisition callback: once a chunk is ready, send it to the API and wait just long enough to match the capture cadence.Generator / pull mode
Use this form when frames are already buffered (from disk, memory, or a simulated source). Provide an iterator that yields chunks and the helper handles pacing and retry logic.Best practices
| Recommendation | Why |
|---|---|
| Maintain original capture cadence | The server expects frames at the declared FPS |
| Use chunk sizes of at least 2 seconds | Reduces overhead and improves throughput |
Always call finalize() | Lets the pipeline clean up gracefully, even on failure |
| Use distinct stream names | Makes it easier to find runs later |
Link to samples and projects
Passphysical_sample to initialize() to link the stream to an existing sample. Names are matched case-insensitively, or a new sample is created if no match is found. You can also pass project_id to associate the stream with a project.
Next steps
Poll Time Series
Monitor streaming analysis in real time.
Streaming Reference
Full RHEEDStreamer API documentation.