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 CalculationTools base and entry point aiida.tools.calculations #2331

Merged

Commits on Dec 10, 2018

  1. Add CalculationTools base and entry point aiida.tools.calculations

    With the migration to the new provenance design, the type string of
    calculation nodes, no longer refer to the actual sub class of the
    `JobCalculation` that was run, but just the base `CalcJobNode`. The
    actual class of the calculation process was stored in the `process_type`
    if it could be mapped onto a known entry point.
    
    However, this change means that when a user now loads a node of a
    completed calculation node, let's say `PwCalculation`, the loaded node
    will be an instance of `CalcJobNode` and not `PwCalculation`, which means
    that any utility methods defined on the `PwCalculation` class are
    inaccessible.
    
    We can return this functionality through the concept of calculation
    tools, which will get exposed through the `CalcJobNode` class and will
    load a specifically registered entry point.
    sphuber committed Dec 10, 2018
    Configuration menu
    Copy the full SHA
    7a24206 View commit details
    Browse the repository at this point in the history