Reference

This module contains general helper functions to aid in developing AiiDA calculations and workchains.

aiida_tools.check_workchain_step(func)[source]

Decorator for workchain steps that logs (and re-raises) errors occuring within that step.

Contains default keyword arguments to pass classes as input to workchains.

aiida_tools.workchain_inputs.WORKCHAIN_INPUT_KWARGS = {'serializer': <function get_fullname>, 'valid_type': <class 'aiida.orm.nodes.data.str.Str'>}

Keyword arguments to be passed to spec.input for serializing an input which is a class / workchain into a string.

aiida_tools.workchain_inputs.get_fullname(cls_obj)[source]

Serializes an AiiDA workchain or workfunction to an AiiDA String. For workchains the class identifier is used, workfunctions are serialized in YAML format.

Parameters:cls_obj (WorkChain, workfunction) – Object to be serialized
aiida_tools.workchain_inputs.load_object(cls_name)[source]

Loads the workchain or workfunction from the serialized string.