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

PhBaseWorkChain: Add a first draft for the protocols #810

Merged
merged 1 commit into from
May 6, 2022

Conversation

mbercx
Copy link
Member

@mbercx mbercx commented May 5, 2022

Add a first draft for the PhBaseWorkChain protocols. These have not
been tested rigorously, but can serve as an initial setup that can be
easily adapted after using the get_builder_from_protocol() method.

This is also necessary to allow higher-level work chains to develop
protocols.

sphuber
sphuber previously approved these changes May 5, 2022
Copy link
Contributor

@sphuber sphuber left a comment

Choose a reason for hiding this comment

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

Approving this. Just a question about the pylint disable. Wonder if it is necessary

qpoints = orm.KpointsData()
qpoints.set_kpoints_mesh(qpoints_mesh)

# pylint: disable=no-member
Copy link
Contributor

Choose a reason for hiding this comment

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

Where are these warnings coming from?

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't know, but:

************* Module aiida_quantumespresso.workflows.ph.base
src/aiida_quantumespresso/workflows/ph/base.py:81:8: E1101: Instance of 'ProcessBuilder' has no 'ph' member (no-member)
src/aiida_quantumespresso/workflows/ph/base.py:83:12: E1101: Instance of 'ProcessBuilder' has no 'ph' member (no-member)
src/aiida_quantumespresso/workflows/ph/base.py:84:8: E1101: Instance of 'ProcessBuilder' has no 'ph' member (no-member)
src/aiida_quantumespresso/workflows/ph/base.py:85:8: E1101: Instance of 'ProcessBuilder' has no 'ph' member (no-member)
src/aiida_quantumespresso/workflows/ph/base.py:87:12: E1101: Instance of 'ProcessBuilder' has no 'ph' member (no-member)
src/aiida_quantumespresso/workflows/ph/base.py:89:8: E1101: Instance of 'ProcessBuilder' has no 'ph' member (no-member)

Add a first draft for the `PhBaseWorkChain` protocols. These have not
been tested rigorously, but can serve as an initial setup that can be
easily adapted after using the `get_builder_from_protocol()` method.

This is also necessary to allow higher-level work chains to develop
protocols.
@mbercx
Copy link
Member Author

mbercx commented May 6, 2022

@sphuber rebased and should be ready to go. Don't know about those pylint warnings, but I think we have them all over the place.

Copy link
Contributor

@sphuber sphuber left a comment

Choose a reason for hiding this comment

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

Gracias señor Bercx!

@mbercx mbercx merged commit 95a7d94 into aiidateam:develop May 6, 2022
@mbercx mbercx deleted the new/ph-base-protocol branch May 6, 2022 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants