Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Numpy version bug with cryoDRGN-ET tilt series dataset containing variable number of tilts #318

Closed
zhonge opened this issue Nov 12, 2023 · 1 comment
Assignees

Comments

@zhonge
Copy link
Collaborator

zhonge commented Nov 12, 2023

There is a bug when loading a star file containing a variable number of tilts (for cryoDRGN-ET). We tracked this down to a deprecated behavior in later versions of numpy (e.g. 1.24.4). The code works with previous versions of numpy (e.g. 1.22.3).

The error looks something like this:

ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (118025,) + inhomogeneous part.

This will be fixed in the next patch release.

@michal-g
Copy link
Collaborator

solved by pinning to an earlier version of numpy in pyproject.toml as of #331

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants