Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Thomas Kluyver
Pycrystfel
Commits
772a45a4
Commit
772a45a4
authored
Jan 08, 2021
by
Thomas Kluyver
Browse files
Fixes to make detector geometry function compile
parent
5e201ee7
Changes
2
Hide whitespace changes
Inline
Side-by-side
pycrystfel/bindings.pyx
View file @
772a45a4
...
...
@@ -5,6 +5,6 @@ def progress_bar(val, total, text):
def
inspect_geom_file
(
path
):
cdef
crystfel
.
detector
*
det
det
=
crystfel
.
get_detector_geometry
(
path
)
det
=
crystfel
.
get_detector_geometry
(
path
,
NULL
)
print
(
"n_panels:"
,
det
.
n_panels
)
print
(
"panel names:"
,
[
det
.
panels
[
i
].
name
for
i
in
range
(
det
.
n_panels
)])
pycrystfel/crystfel.pxd
View file @
772a45a4
...
...
@@ -27,13 +27,13 @@ cdef extern from "crystfel/index.h":
INDEXING_USE_CELL_PARAMETERS
cdef
extern
from
"crystfel/detector.h"
:
c
type
def
struct
panel
:
cdef
struct
panel
:
char
name
[
1024
]
double
coffset
double
clen
# ...
c
type
def
struct
detector
:
cdef
struct
detector
:
panel
*
panels
int
n_panels
# ...
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment