Launch PtyRAD#
💡 This video was recorded for Ptychography Summer School at Cornell 2025, which has additional access to SciServer, and a slightly different demo folder structure.
You can launch PtyRAD with many different approaches once it’s installed in your Python environment.
For example, you can:
Run the tutorial Jupyter notebooks under
ptyrad/notebooks/run_ptyrad.ipynbLaunch with CLI tools from your terminal as simple as
ptyrad run <PARAMS_FILE_PATH>Use a Slurm job script like
ptyrad/scripts/slurm_run_ptyrad.sub
For all the launching method, PtyRAD supports 2 operation modes:
reconstruction
hypertune (hyperparameter tuning)
These operation modes can be executed on CPU, GPU, or even distributed on multiple GPUs for better performance.
Routine workflow
Acquire experimental or get simulated data
Prepare params files
Launch PtyRAD task
Analyze and refine the params file