Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ComputationalResourcesWidget refresh things after every update (#306)
fixes #301. In this PR the ComputationalResourcesWidget's behaviour is improved: After each computer setup the code widget is refreshed. After each code setup, the list of available codes is refreshed. Additionally, there were a few changes to achieve the things mentioned above: - ComputationalResourcesWidget refresh things after each setup. - Simplify ComputationalResourcesWidget by the use of refresh() method defined in the subwidgets. - Simplify `ssh_copy_id` function that raises a RuntimeError in case the connection to a remote computer couldn't be established. The exception is then handled outside. - Define `refresh` method as a part of AiidaCodeSetup. - Use `on_<event>` methods to append function to an internal list. - Implement ssh connection states in `SshComputerSetup` widget. Introduce `ssh_connection_state` trait that contains the current status of the SSH connection. The widget acts according to the value of the trait. Co-authored-by: Carl Simon Adorf <simon.adorf@epfl.ch> Co-authored-by: Jusong Yu <jusong.yeu@gmail.com>
- Loading branch information