Quickstart Demo#
Here, we provide a quick walkthough of our demo data and params files for PtyRAD.
Before running the demo, please check the following:
Checklist
Install a modern code editor (e.g. VS Code)
Install a Python environment / package manager (e.g. miniforge)
Download or clone the PtyRAD source code from the GitHub repo
Create a dedicated python environemnt
(ptyrad)for PtyRAD and activate it in the terminalInstall PtyRAD into the
(ptyrad)environmentDownload and place the demo datasets to the correct location under
demo/data/
💡 Note: You can find the two example datasets (PSO, tBL_WSe2) in the
demo/data/folder in our Zenodo record, which contains a full copy of the PtyRAD codebase (v0.1.0b4) as well.
Once you complete the checklist, you’re now ready to run a quick demo using one of two interfaces:
1. Interactive Jupyter interface (Recommended)
Use run_ptyrad_quick_example.ipynb to quickly reconstruct the demo dataset in a Jupyter notebook
2. Command-line interface
# Here we assume working directory is set at `demo/`
ptyrad run --params_path "params/tBL_WSe2_reconstruct.yml" --gpuid 0