You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Suppose I have two importers: "from file" and "SMILES":
If I do the following:
Create a molecule from SMILES C=C, I will obtain the correct C2H4 molecule
After that, I import the file.xyz, and the molecule will be correctly replaced by the uploaded structure.
Then, switching back to SMILES and pressing "Generate molecule" will do nothing because the SMILES string is unchanged.
Modifying the SMILES string to another value (C for instance) correctly provides a new molecule.
Additionally, if I go back to "Import from computer" and re-import the same file. xyz, it will do nothing again. If I import a different file, it will work.
It seems to be related to the traits notification problem. Since the trait somehow keeps the same value it does not notifies the structure update.
Additional observation.
For an unknown reason the information about the change of the structure trait of an importer doesn't go to the input_structure of the manager, even though it should:
I think the fix for this is to always assign None to the structure traitlets at the beginning of any structure import / creation operation. Unrelated to this problem, I always found it confusing when the structure is not reset when e.g. the upload or import operation fails.
Suppose I have two importers: "from file" and "SMILES":
If I do the following:
C=C
, I will obtain the correctC2H4
moleculefile.xyz
, and the molecule will be correctly replaced by the uploaded structure.C
for instance) correctly provides a new molecule.file. xyz
, it will do nothing again. If I import a different file, it will work.It seems to be related to the traits notification problem. Since the trait somehow keeps the same value it does not notifies the structure update.
Additional observation.
For an unknown reason the information about the change of the
structure
trait of an importer doesn't go to theinput_structure
of the manager, even though it should:aiidalab-widgets-base/aiidalab_widgets_base/structures.py
Line 170 in 035047f
The text was updated successfully, but these errors were encountered: