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

Implement the new base ORM classes for process nodes #2184

Conversation

sphuber
Copy link
Contributor

@sphuber sphuber commented Nov 11, 2018

Fixes #2167

This commit defines the new basic hierarcy of the ORM classes for process nodes.
In addition, it already moves over the functionality of the current abstract
calculation classes to their new corresponding counterpart.

  • AbstractCalculation -> ProcessNode and CalcJobNode
  • AbstractJobCalculation -> CalcJobNode

This should allow the refactoring of the code according to the renaming of the
node ORM classes to begin.

@coveralls
Copy link

coveralls commented Nov 11, 2018

Coverage Status

Coverage decreased (-2.06%) to 66.56% when pulling 96d9d7b on sphuber:fix_2167_define_process_node_base_hierarchy into 5a8438d on aiidateam:provenance_redesign.

@sphuber sphuber force-pushed the fix_2167_define_process_node_base_hierarchy branch from 730c4c9 to ff7bb46 Compare November 11, 2018 15:41
giovannipizzi
giovannipizzi previously approved these changes Nov 11, 2018
@sphuber
Copy link
Contributor Author

sphuber commented Nov 11, 2018

Let's not merge this yet. I'm still working a bit on the structure. Ideally, we can expose every submodule to its parent, such that eventually, one can do from aiida.orm.node import WorkChainNode, but this is not working yet

@sphuber sphuber changed the title Implement the new base ORM classes for process nodes [ON HOLD] Implement the new base ORM classes for process nodes Nov 11, 2018
@sphuber sphuber force-pushed the fix_2167_define_process_node_base_hierarchy branch 4 times, most recently from 1a5c009 to 91f9646 Compare November 11, 2018 17:40
This commit defines the new basic hierarcy of the ORM classes for process nodes.
In addition, it already moves over the functionality of the current abstract
calculation classes to their new corresponding counterpart.

 - `AbstractCalculation` -> `ProcessNode` and `CalcJobNode`
 - `AbstractJobCalculation` -> `CalcJobNode`

This should allow the refactoring of the code according to the renaming of the
node ORM classes to begin.
@sphuber sphuber force-pushed the fix_2167_define_process_node_base_hierarchy branch from 91f9646 to 96d9d7b Compare November 11, 2018 18:06
@sphuber sphuber changed the title [ON HOLD] Implement the new base ORM classes for process nodes Implement the new base ORM classes for process nodes Nov 11, 2018
@sphuber
Copy link
Contributor Author

sphuber commented Nov 11, 2018

OK, the tests now pass and I tested the setup by starting migration of FunctionCalculation to WorkFunctionNode of #2169 and that seems to work. This is good to go and ready for review

@sphuber sphuber merged commit 9ad164e into aiidateam:provenance_redesign Nov 12, 2018
@sphuber sphuber deleted the fix_2167_define_process_node_base_hierarchy branch November 12, 2018 08:48
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.

3 participants