Skip to content
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

Set installed traitlets of pseudo/qe install widget when it's done #262

Merged
merged 3 commits into from
Aug 8, 2022

Conversation

unkcpz
Copy link
Member

@unkcpz unkcpz commented Aug 8, 2022

fixes #261

@unkcpz unkcpz requested a review from csadorf August 8, 2022 14:42
@unkcpz unkcpz changed the title Set installed traitlets of pseudo install widget when it's done Set installed traitlets of pseudo/qe install widget when it's done Aug 8, 2022
aiidalab_qe/setup_codes.py Show resolved Hide resolved
@@ -102,6 +102,7 @@ def _refresh_installed(self):
self.set_trait("error", str(error))
self.set_message(str(error))
else:
self.set_trait("installed", True)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be safe I'd recommend:

Suggested change
self.set_trait("installed", True)
self.set_trait("installed", not bool(pseudos_to_install()))

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good advice! If all the libraries are install by hands bool(pseudos_to_install()) will be False empty list.

@unkcpz unkcpz merged commit 0759636 into master Aug 8, 2022
@unkcpz unkcpz deleted the fix/pseudo-installed branch August 8, 2022 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Critical: the SSSP library is not installed
2 participants