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

Computing surface yields unexpected error #11

Open
allexandre97 opened this issue Jul 19, 2021 · 2 comments
Open

Computing surface yields unexpected error #11

allexandre97 opened this issue Jul 19, 2021 · 2 comments
Labels
invalid This doesn't seem right

Comments

@allexandre97
Copy link

Hello,

I'm trying to compute a surface for a CG pure POPC membrane.
In pseudocode, the procedure I'm following looks like:

import MDAnalysis
from memsurfer import Membrane

u = MDAnalysis.Universe(pdb_file, xtc_file)

frame = u.trajectory[-1]

atoms = u.select_atoms('name PO4')
bbox = np.zeros((2,3))
bbox[1,:] = frame.dimensions[:3]

membrane = Membrane.compute(atoms.positions, atoms.resnames, bbox = bbox, periodic = True)

Which yields the following error

terminate called after throwing an instance of 'std::length_error'
what():  cannot create std::vector larger than max_size()

It looks like it has something to do with the box dimensions (maybe?) but I have no Idea how to fix it.

I also tried computing a surface from a random distribution of points within the same bounds as my membrane, and get the same error.

Thank you very much in advance for your help!

@bhatiaharsh
Copy link
Contributor

how large is the system? can you provide atoms.positions.shape ?

@allexandre97
Copy link
Author

The array where I have the positions has a (5000, 3) shape

@bhatiaharsh bhatiaharsh added the invalid This doesn't seem right label Apr 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants