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

Add load_profile to entrypoints analyse #314

Merged
merged 3 commits into from
Apr 11, 2024

Conversation

unkcpz
Copy link
Member

@unkcpz unkcpz commented Apr 11, 2024

aiida-aimall show an error that actually can be avoid from analyse_entrypoint.py. It raises because it use default=Int(1) instead of default=lambda: Int(1) that is better in practice (see https://aiida.readthedocs.io/projects/aiida-core/en/latest/topics/processes/usage.html#validation-and-defaults). The point is we should not force developer to do this and the default=Int(1) is acceptable.

So In this PR I just add aiida.load_profile() since the profile is exist in the aiida-core-with-servecs image. In the future, we can considered to use the light profile for entry_point analysis.

@unkcpz unkcpz requested a review from khsrali April 11, 2024 08:57
Copy link

PR Preview Action v1.4.7
🚀 Deployed preview to https://aiidateam.github.io/aiida-registry/pr-preview/pr-314/
on branch gh-pages at 2024-04-11 09:43 UTC

@unkcpz unkcpz merged commit 6ea4a71 into master Apr 11, 2024
5 checks passed
@unkcpz unkcpz deleted the load-profile-when-running-entrypoints-check branch April 11, 2024 09:50
@unkcpz
Copy link
Member Author

unkcpz commented Apr 11, 2024

The preview shows the aiida-aimall entrypoints are showed, safe to merge.

@unkcpz unkcpz restored the load-profile-when-running-entrypoints-check branch April 11, 2024 10:27
unkcpz added a commit that referenced this pull request Apr 11, 2024
unkcpz added a commit that referenced this pull request Apr 11, 2024
@unkcpz unkcpz deleted the load-profile-when-running-entrypoints-check branch April 24, 2024 08:32
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.

1 participant