Command-line Interface (CLI)

Command-line Interface (CLI)#

PtyRAD also provides a command-line interface to execute common commands from your terminal once you installed ptyrad in your Python environment.

Run reconstructions

# This is used to quickly launch a reconstruction / hypertune task
ptyrad run --params_path params/tBL_WSe2_reconstruct.yaml

Check GPU compatibility and PyTorch build

ptyrad check-gpu

Full list of hardware and package version information

ptyrad print-system-info

Export PtyRAD preprocessed measurements data

# Exporting measurements data for easy visualization and analysis
ptyrad export-meas-init --params_path params/tBL_WSe2_reconstruct.yaml --output data/ptyrad_init_meas.hdf5 --reshape 128 128 128 128 --append