kalemaria / pycurv

Reliable estimation of membrane curvature for cryo-electron tomography
GNU Lesser General Public License v3.0
16 stars 6 forks source link

AttributeError #7

Closed YangciL closed 3 years ago

YangciL commented 3 years ago

I sorted it out, it is a little mistake I have for the label.

Thanks for the pycurv package !

Hi kalemaria,

Many thanks for the pycurv development.

I am a PhD student and I would like to use it for some mito membrane curvature. Your workflow is well explained, but as I am a real beginner for python, I am stuck with the following error after this line:

binary_seg = (seg == label).astype(data_type)

:1: FutureWarning: elementwise comparison failed; returning scalar instead, but in the future will perform elementwise comparison binary_seg = (seg == label).astype(data_type) --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) in ----> 1 binary_seg = (seg == label).astype(data_type) AttributeError: 'bool' object has no attribute 'astype' Many thanks in advance. If it is easier for you, here is my email address yl620@cam.ac.uk. Best, Yangci