-
Notifications
You must be signed in to change notification settings - Fork 191
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
[BUG] Crystal supercell displays in a very weird way #770
Comments
This is exactly Issue #759. You need to pass an additional boolean argument to replicateUnitCell (prune) so atoms outside the unit cell aren't shown. I apologize for not updating the documentation (it is updated now). |
@dkoes I apologise if I am being slow or dense, but I am not sure I understand the link with that issue. #759 is about atoms exactly at the boundary of the unit cell (if I read that correctly), which is not my case. The CIF file used in the example code I put online is https://www.nanoporous.net/MOF_viewer/HKUST-1.cif I tested the With where the unit cell is not replicated, and still there are atoms outside the unit cell. |
I see what is going on here. |
Yeah, that works perfectly. Thanks! |
Oh, I'm seeing what I think is a regression on another structure with symmetry. Going to https://www.nanoporous.net/MOF_viewer/ and selecting MIL-101 in the dropbox: The CIF file is: https://www.nanoporous.net/MOF_viewer/MIL-101.cif
|
The issue with that file is the reference coordinates are outside the box to start with. I've modified wrapAtoms to also wrap the reference coordinates (identity matrix symmetry). I've also changed the bond detection behavior to not determine bonds before wrapping. |
Describe the bug
Loading a CIF file with symmetry and duplicating the unit cell gives this:
To Reproduce
I've put an example online at https://www.nanoporous.net/MOF_viewer/
Both files represent exactly the same structure, one has symmetry information.
Expected behavior
The full code is in the webpage source. The loading code is this:
and the two relevant lines are:
I must confess from the documentation that the "assembly" process and related options are not very clear.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: