IsoNet-cryoET / IsoNet

Self-supervised learning for isotropic cryoET reconstruction
https://www.nature.com/articles/s41467-022-33957-8
MIT License
67 stars 12 forks source link

AttributeError: module 'numpy' has no attribute 'int' #40

Closed fonsecareyna82 closed 1 year ago

fonsecareyna82 commented 1 year ago

If the numpy version is 1.24.1, the Predic step fail in the following line:

https://github.com/IsoNet-cryoET/IsoNet/blob/cfcca2fcb022a78e58249afb136c023f0648201f/util/toTile.py#L12

procyontao commented 1 year ago

Whether change “np.int” to “int” fix the problem?

fonsecareyna82 commented 1 year ago

Thanks @procyontao for answering me. Yes, this should fix the problem!!

procyontao commented 1 year ago

Thank you for testing this. I made the change accordingly in the new commit

fonsecareyna82 commented 1 year ago

Thank you @procyontao !!!