Parsers

base parser class

cif_base parser plugin

Generic Parser implementation that can easily be extended to work with any of the cod-tools scripts.

class aiida_codtools.parsers.cif_base.CifBaseParser(node)[source]

Generic Parser implementation that can easily be extended to work with any of the cod-tools scripts.

_supported_calculation_class

alias of aiida_codtools.calculations.cif_base.CifBaseCalculation

parse(**kwargs)[source]

Parse the contents of the output files retrieved in the FolderData.

parse_stderr(filelike)[source]

Parse the content written by the script to standard err.

Parameters

filelike – filelike object of stderr

Returns

an exit code in case of an error, None otherwise

parse_stdout(filelike)[source]

Parse the content written by the script to standard out into a CifData object.

Parameters

filelike – filelike object of stdout

Returns

an exit code in case of an error, None otherwise

cif_cell_contents parser plugin

Parser implementation for the CifCellContentsCalculation plugin.

class aiida_codtools.parsers.cif_cell_contents.CifCellContentsParser(node)[source]

Parser implementation for the CifCellContentsCalculation plugin.

_supported_calculation_class

alias of aiida_codtools.calculations.cif_cell_contents.CifCellContentsCalculation

parse_stdout(filelike)[source]

Parse the formulae from the content written by the script to standard out.

Parameters

filelike – filelike object of stdout

Returns

an exit code in case of an error, None otherwise

cif_cod_check parser plugin

Parser implementation for the CifCodCheckCalculation plugin.

class aiida_codtools.parsers.cif_cod_check.CifCodCheckParser(node)[source]

Parser implementation for the CifCodCheckCalculation plugin.

_supported_calculation_class

alias of aiida_codtools.calculations.cif_cod_check.CifCodCheckCalculation

parse_stdout(filelike)[source]

The stdout for cif_cod_check is supposed to be empty, the real content will be written to stderr.

Parameters

filelike – filelike object of stdout

Returns

an exit code in case of an error, None otherwise

cif_cod_deposit parser plugin

Generic Parser implementation that can easily be extended to work with any of the cod-tools scripts.

class aiida_codtools.parsers.cif_cod_deposit.CifCodDepositParser(node)[source]

Parser implementation for the CifCodDepositCalculation plugin.

_supported_calculation_class

alias of aiida_codtools.calculations.cif_cod_deposit.CifCodDepositCalculation

parse_stdout(filelike)[source]

Parse the content written by the script to standard out.

Parameters

filelike – filelike object of stdout

Returns

an exit code in case of an error, None otherwise

cif_cod_numbers parser plugin

Parser implementation for the CifCodNumbersCalculation plugin.

class aiida_codtools.parsers.cif_cod_numbers.CifCodNumbersParser(node)[source]

Parser implementation for the CifCodNumbersCalculation plugin.

_supported_calculation_class

alias of aiida_codtools.calculations.cif_cod_numbers.CifCodNumbersCalculation

parse_stdout(filelike)[source]

Parse the content written by the script to standard out.

Parameters

filelike – filelike object of stdout

Returns

an exit code in case of an error, None otherwise

cif_split_primitive parser plugin

Parser implementation for the CifSplitPrimitiveCalculation plugin.

class aiida_codtools.parsers.cif_split_primitive.CifSplitPrimitiveParser(node)[source]

Parser implementation for the CifSplitPrimitiveCalculation plugin.

_supported_calculation_class

alias of aiida_codtools.calculations.cif_split_primitive.CifSplitPrimitiveCalculation

parse_stdout(filelike)[source]

Parse the content written by the script to standard out.

The standard output will contain a list of relative filepaths where the generated CIF files have been written.

Parameters

filelike – filelike object of stdout

Returns

an exit code in case of an error, None otherwise