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

check if the code is installed and usable #669

Merged
merged 2 commits into from
Apr 11, 2024

Conversation

superstar54
Copy link
Member

@superstar54 superstar54 commented Apr 10, 2024

fix #664

If code is imported from another user, it is not usable and thus will not be treated as an option in the ComputationalResourcesWidget.

# note: if code is imported from another user, it is not usable and thus will not be
# treated as an option in the ComputationalResourcesWidget.
if _get_code_uuid(codes.get(name)) in code.code_select_dropdown.options:
code.value = _get_code_uuid(codes.get(name))

Choose a reason for hiding this comment

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

Is there any issue if code.value is not defined ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks for the review. The code is a ComputationalResourcesWidget, which always has a value attribute.

Copy link
Member

@AndresOrtegaGuerrero AndresOrtegaGuerrero left a comment

Choose a reason for hiding this comment

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

LGTM! , I did test with another account and it works!

@superstar54 superstar54 merged commit dcb951d into aiidalab:main Apr 11, 2024
14 checks passed
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.

Sharing Results from aiidalab_qe between users
2 participants