Commit 5e201ee7 authored by Thomas Kluyver's avatar Thomas Kluyver
Browse files

Try reading geometry files with bindings

parent 82d9c045
import sys
from pycrystfel.bindings import inspect_geom_file
......@@ -2,3 +2,9 @@ from . cimport crystfel
def progress_bar(val, total, text):
crystfel.progress_bar(val, total, text.encode())
def inspect_geom_file(path):
cdef crystfel.detector *det
det = crystfel.get_detector_geometry(path)
print("n_panels:", det.n_panels)
print("panel names:", [det.panels[i].name for i in range(det.n_panels)])
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