-
Notifications
You must be signed in to change notification settings - Fork 18
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
Hide the Cell tab when the structure is not periodic #351
Comments
#488 address this ? , if you test now the viewer do not hide the cell parameters for 1D and 2D periodicity |
Yep! thanks! |
@AndresOrtegaGuerrero are you sure? I think this issue is about something else than what was addressed in #488. Here the idea was that the Cell tab should be completely hidden when the structure is not periodic. I don't think that's the case now? |
@danielhollas if the behaviour desired is like that , then no, it doesnt hide the cell tab when having a 0D material, but regarding 1D and 2D materials it doesnt disappear the cell parameters |
Emm... @danielhollas is right, I didn't read carefully what I wrote before, sorry. If the structure is a molecule, the tab will still show. But the behavior is more confusing now. I upload a water molecule and there are values for the cell. Not sure where it comes from. The structure is from https://github.com/susilehtola/erkale/blob/master/tests/xyz/H2O.xyz |
I think that's because we add a dummy cell to gas phase molecule. In the old AiiDA, there needed to be default cell, otherwise StructureData would not work. But that has been fixed so we should get rid of this login in AWB. |
The fix in aiida-core was done here aiidateam/aiida-core#5341 |
@unkcpz can you try if it works correctly if you generate a molecule from SMILES? |
I'll try it later, I only have QE app at hand which doesn't have SMILES tab open 😂 |
I think a future PR should be to add a widget to a cell editor, in such a way that first it can change and set the periodicity of the system (we have one in QE_app). Given this widget it should control if the cell appears or disappear (It could also just set the layout of the cell tab to say the system has periodicity none, but display the symmetry information, relevant for the molecule) based on the periodicity, and then the user can set the cell parameters if desired. |
@danielhollas I think it is al fine, which means we can safely remove this function I assume? But for the SMILE widget itself, I first encounter |
Yes, I think we should remove that function. btw: SMILES-generated molecules also should not have any cell, not sure where that comes from.
That's already done in |
The
StructureDataviewer
will show the cell tab if the cell tab is initialized when creating the viewer.It makes no sense to show the cell information for the non-periodic structure.
So when the structure detected is not 0-D structure the
cell
tab should be completely hidden.But for the 1-D and 2-D structures, there are options here, either we can hide the cell tab completely or we can show partial information with the cell.
The text was updated successfully, but these errors were encountered: