Closed dkazanc closed 5 years ago
My guess is that the cast to float isn't right for Python 2.7. We should do that with proper ctypes.
Try casting with ctypes.c_float(obj['C0'])
instead float(obj['C0'])
, etc.
by cast to float you mean the function call, where:
float(obj['C0']),
float(obj['x0']),
float(obj['y0']),
float(obj['z0']),
float(obj['a']),
float(obj['b']),
float(obj['c']),
float(obj['phi1']),
float(obj['phi2']),
float(obj['phi3']), 0)
yes
I believe that in the short term I will create 2 different pyx files for Python 3 and 2. In the long term we shall use ctypes.
Fine by me, it's a bit of a hassle really.
Is this still relevant?
the issue persists for Python 2.7
fails also with 3.5...
DemoObject3D.py
runs from Python 3.5 but crashes with "kernel died" from 2.7. It seemssomewhat responsible in
TomoP3D.pyx
?