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
94db56eb
Commit
94db56eb
authored
Jan 20, 2021
by
Thomas Kluyver
Browse files
Error checking on creating UnitCell pointer
parent
247e7017
Changes
1
Hide whitespace changes
Inline
Side-by-side
pycrystfel/bindings.pyx
View file @
94db56eb
...
...
@@ -144,6 +144,8 @@ cdef class UnitCell:
cdef
crystfel
.
UnitCell
*
ptr
=
crystfel
.
cell_new_from_parameters
(
a
,
b
,
c
,
alpha
,
beta
,
gamma
,
)
if
ptr
is
NULL
:
raise
MemoryError
(
"Could not create UnitCell struct"
)
return
UnitCell
.
from_ptr
(
ptr
,
owner
=
True
)
@
property
...
...
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