# aiida.calculations.arithmetic package¶

## Submodules¶

CalcJob implementation to add two numbers using bash for testing and demonstration purposes.

class aiida.calculations.arithmetic.add.ArithmeticAddCalculation(*args: Any, **kwargs: Any)[source]

CalcJob implementation to add two numbers using bash for testing and demonstration purposes.

__abstractmethods__ = frozenset({})
__module__ = 'aiida.calculations.arithmetic.add'
_abc_impl = <_abc_data object>
classmethod define(spec: aiida.engine.processes.process_spec.CalcJobProcessSpec)[source]

Define the process specification, including its inputs, outputs and known exit codes.

Parameters

spec – the calculation job process spec to define.

prepare_for_submission(folder: aiida.common.folders.Folder)aiida.common.datastructures.CalcInfo[source]

Prepare the calculation for submission.

Convert the input nodes into the corresponding input files in the format that the code will expect. In addition, define and return a CalcInfo instance, which is a simple data structure that contains information for the engine, for example, on what files to copy to the remote machine, what files to retrieve once it has completed, specific scheduler settings and more.

Parameters

folder – a temporary folder on the local file system.

Returns

the CalcInfo instance