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
af4757eb
Commit
af4757eb
authored
Jan 07, 2021
by
Thomas Kluyver
Browse files
Describe image struct
parent
b564a1bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
pycrystfel/crystfel.pxd
View file @
af4757eb
cdef
extern
from
"crystfel/utils.h"
:
void
progress_bar
(
int
val
,
int
total
,
const
char
*
text
)
cdef
extern
from
"crystfel/crystal.h"
:
ctypedef
struct
Crystal
:
pass
# Opaque struct, used through functions
Crystal
*
crystal_new
(
void
)
void
crystal_free
(
Crystal
*
cryst
)
Crystal
*
crystal_copy
(
const
Crystal
*
cryst
)
cdef
extern
from
"crystfel/index.h"
:
ctypedef
enum
IndexingMethod
:
INDEXING_NONE
,
INDEXING_DIRAX
,
INDEXING_MOSFLM
,
INDEXING_FELIX
,
INDEXING_XDS
,
INDEXING_SIMULATION
,
INDEXING_DEBUG
,
INDEXING_ASDF
,
INDEXING_TAKETWO
,
INDEXING_XGANDALF
,
INDEXING_PINKINDEXER
,
INDEXING_ERROR
,
INDEXING_USE_LATTICE_TYPE
,
INDEXING_USE_CELL_PARAMETERS
cdef
extern
from
"crystfel/detector.h"
:
ctypedef
struct
panel
:
char
name
[
1024
]
double
coffset
double
clen
# ...
ctypedef
struct
detector
:
panel
*
panels
int
n_panels
# ...
cdef
extern
from
"crystfel/spectrum.h"
:
ctypedef
struct
Spectrum
:
pass
# Opaque struct, used through functions
cdef
extern
from
"crystfel/image.h"
:
ctypedef
struct
beam_params
:
double
photon_energy
char
*
photon_energy_from
double
photon_energy_scale
double
bandwidth
ctypedef
struct
ImageFeatureList
:
pass
# Opaque struct, used through functions
ctypedef
struct
image
:
float
**
dp
int
**
bad
float
**
sat
int
hit
Crystal
**
crystals
int
n_crystals
IndexingMethod
indexed_by
int
n_indexing_tries
detector
*
det
beam_params
*
beam
double
avg_clen
int
id
int
serial
Spectrum
*
spectrum
double
lambda_
"lambda"
double
div
double
bw
double
peak_resolution
ImageFeatureList
*
features
char
*
filename
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