Commit fc9ac5e1 authored by Thomas Kluyver's avatar Thomas Kluyver
Browse files

Example of constructing unit cell & retrieving lengths

parent 6b1d2e45
import numpy as np
from pycrystfel.bindings import UnitCell
# https://www.rcsb.org/structure/3WUL
# Lengths in m, angles in radians
cell = UnitCell.from_parameters(79e-10, 79e-10, 38e-10, np.pi/2, np.pi/2, np.pi/2)
print("Retrieved lengths:", cell.lengths)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment