aiida.restapi.translator.nodes.calculation package

Translator for calculation node

class aiida.restapi.translator.nodes.calculation.CalculationTranslator(**kwargs)[source]

Bases: aiida.restapi.translator.nodes.node.NodeTranslator

Translator relative to resource ‘calculations’ and aiida class Calculation

class CalculationNode(backend=None, user=None, computer=None, **kwargs)

Bases: aiida.orm.nodes.process.process.ProcessNode

Base class for all nodes representing the execution of a calculation process.

__abstractmethods__ = frozenset()
__module__ = 'aiida.orm.nodes.process.calculation.calculation'
_abc_impl = <_abc_data object>
_cachable = True
_logger = <Logger aiida.orm.nodes.process.calculation.calculation.CalculationNode (REPORT)>
_plugin_type_string = 'process.calculation.calculation.CalculationNode.'
_query_type_string = 'process.calculation.calculation.'
_storable = True
_unstorable_message = 'storing for this node has been disabled'
inputs

Return an instance of NodeLinksManager to manage incoming INPUT_CALC links

The returned Manager allows you to easily explore the nodes connected to this node via an incoming INPUT_CALC link. The incoming nodes are reachable by their link labels which are attributes of the manager.

Returns:NodeLinksManager
outputs

Return an instance of NodeLinksManager to manage outgoing CREATE links

The returned Manager allows you to easily explore the nodes connected to this node via an outgoing CREATE link. The outgoing nodes are reachable by their link labels which are attributes of the manager.

Returns:NodeLinksManager
__init__(**kwargs)[source]

Initialise the parameters. Create the basic query_help

__label__ = 'calculations'
__module__ = 'aiida.restapi.translator.nodes.calculation'
_aiida_class

alias of aiida.orm.nodes.process.calculation.calculation.CalculationNode

_aiida_type = 'process.calculation.calculation.CalculationNode'
_result_type = 'calculations'
static get_files_list(node_obj, dir_obj=None, files=None, prefix=None)[source]

Return the list of all files contained in the node object repository If a directory object dir_obj of the repository is passed, get the list of all files recursively in the specified directory

Parameters:
  • node_obj – node object
  • dir_obj – directory in which files will be searched
  • files – list of files if any
  • prefix – file name prefix if any
Returns:

the list of files

static get_retrieved_inputs(node, filename=None, rtype=None)[source]

Get the submitted input files for job calculation :param node: aiida node :return: the retrieved input files for job calculation

static get_retrieved_outputs(node, filename=None, rtype=None)[source]

Get the retrieved output files for job calculation :param node: aiida node :return: the retrieved output files for job calculation