write_npz

macromol_voxelize.write_npz(path: str | Path, img: Image, grid: Grid)[source]

Write the given image to an *.npz file.

The resulting file can be visualized using PyMOL. The physical dimensions of the image are included in the file, so the image can be properly superimposed on a molecular structure.