-
Notifications
You must be signed in to change notification settings - Fork 53
Add template to write new modules #520
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
Conversation
Codecov Report
@@ Coverage Diff @@
## main #520 +/- ##
=======================================
Coverage 74.66% 74.66%
=======================================
Files 105 105
Lines 6926 6926
=======================================
Hits 5171 5171
Misses 1755 1755 Continue to review full report at Codecov.
|
| # dependencies required by your module are installed. | ||
| # this class method will be executed when HADDOCK3 starts. | ||
|
|
||
| # if you module does not import any run-time dependency, just leave |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what happens if you put an import here that tries to import a dependency that is not installed, will it handle the error?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed, thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the chek @rvhonorato implemented in the optint PR #515 . Maybe we can copy it here? commented out of course
|
Thank you very much for this (: |
Co-authored-by: Rodrigo V Honorato <rvhonorato@gmail.com>
Co-authored-by: Rodrigo V Honorato <rvhonorato@gmail.com>
Co-authored-by: Rodrigo V Honorato <rvhonorato@gmail.com>
|
thanks for the review. I have addressed all the issues. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This template should greatly help new developers to add new modules - most likely for the majority of modules nothing will needs to be changed in the core python shell and this template clarifies where things should be added in the module context.
👍🏽
| # dependencies required by your module are installed. | ||
| # this class method will be executed when HADDOCK3 starts. | ||
|
|
||
| # if you module does not import any run-time dependency, just leave |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the chek @rvhonorato implemented in the optint PR #515 . Maybe we can copy it here? commented out of course
|
Good addition indeed, it's going to be useful! A curiosity: does the check on the |
Co-authored-by: Marco Giulini <54807167+mgiulini@users.noreply.github.com>
not yet: #487
what is it? |
|
Works for me, the variables |
Yes, that was my intention. Do you think the template should be listed? I think not because otherwise, users could use it in the workflow, and that makes no sense. Let me know. Cheers. |
No it should not be listed, the template is for module contributors, not for module consumers. |
|
Perfect 👍 Thanks! |
You are about to submit a new Pull Request. Before continuing, make sure you read the contributing guidelines, and you comply with the following criteria:
Please let me know if it is clear or if any information is missing according to your recent experience. Thanks