aiidalab / aiidalab-widgets-base

Reusable widgets for AiiDAlab applications
MIT License
7 stars 17 forks source link

Set structure traitlet to None before assigning new structure #549

Open danielhollas opened 8 months ago

danielhollas commented 8 months ago

Cherry-picked from #383 by @cpignedoli

Fixes https://github.com/aiidalab/aiidalab-widgets-base/issues/381

This fixes the setting of self.structure = None when a action button is pressed for an importer ("SMILES" and "import from computer")

Thanks, @danielhollas, I tried self.structure = None just in observe("input_structure") but this does not work still, I keep the modification also in that observe.

TODO(DH): Need to test this