otherlab / geode

A computational geometry library for C++ and Python
Other
86 stars 22 forks source link

3dFrames python conversion has trouble with array alignment on newest numpy #62

Open kpasko opened 9 years ago

kpasko commented 9 years ago

Evidenced in test_frames.py failure. when an array of translations are passed instead of just one, unaligned arrays are produced in new. Likely the dtype needs to be updated, something like

custom_dtype = dict(('%sx%s'%(d,len(tr)),dtype([('t','%df%d'%(d*len(tr),real.itemsize)),('r',Rotations[d].dtype)])))

then self.dtypes and self.inv_dtypes would have to be updated...not sure this is a very satisfactory solution..