-
Notifications
You must be signed in to change notification settings - Fork 661
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
Universe() should either work as Universe.empty() or raise an exception #2527
Comments
After looking a bit more at the docs, it looks like I should use |
Honestly, since we have (There's a good chance that this is simply due to history and the fact that for the longest time empty universes weren't possible. I am also not sure if there are insurmountable technical difficulties.) |
@Luthaf thanks for the report. Because there's C allocation going on, and resizing is a pain, even an empty Universe needs to know its size. It might actually be that you want to pass in the |
I ended up using What I wanted to do initially was to create an Universe/a Topology without reading a file, instead adding atoms/coordinates directly from Python. So I created an universe with |
Expected behavior
Prints something sensible.
Actual behavior
Currently version of MDAnalysis
python -c "import MDAnalysis as mda; print(mda.__version__)"
): 0.20.2-dev0python -V
)? Python 3.7.6The text was updated successfully, but these errors were encountered: