aiida-codtools
The Official AiiDA plugin for the cod-tools package.
General information
Registry checks
Plugins provided
Entry points
-
codtools.cif_base
class:aiida_codtools.calculations.cif_base:CifBaseCalculationGeneric `CalcJob` implementation that can easily be extended to work with any of the `cod-tools` scripts.
Input Required Valid types Description ciftrue CifDataThe CIF to be processed. codefalse AbstractCode, NoneTypeThe `Code` to use for this job. This input is required, unless the `remote_folder` input is specified, which means an existing job is being imported and no code will actually be run. metadatafalse monitorsfalse DictAdd monitoring functions that can inspect output files while the job is running and decide to prematurely terminate the job. parametersfalse Dict, NoneTypeCommand line parameters. remote_folderfalse RemoteData, NoneTypeRemote directory containing the results of an already completed calculation job without AiiDA. The inputs should be passed to the `CalcJob` as normal but instead of launching the actual job, the engine will recreate the input files and then proceed straight to the retrieve step where the files of this `RemoteData` will be retrieved as if it had been actually launched through AiiDA. If a parser is defined in the inputs, the results are parsed and attached as output nodes as usual. Output Required Valid types Description remote_foldertrue RemoteDataInput files necessary to run the process will be stored in this folder node. retrievedtrue FolderDataFiles that are retrieved by the daemon will be stored in this node. By default the stdout and stderr of the scheduler will be added, but one can add more by specifying them in `CalcInfo.retrieve_list`. messagesfalse DictWarning and error messages returned by script. remote_stashfalse RemoteStashDataContents of the `stash.source_list` option are stored in this remote folder after job completion. Exit status Message 1 The process has failed with an unspecified error. 2 The process failed with legacy failure mode. 10 The process returned an invalid output. 11 The process did not register a required output. 100 The process did not have the required `retrieved` output. 110 The job ran out of memory. 120 The job ran out of walltime. 131 The specified account is invalid. 140 The node running the job failed. 150 {message} 300 Neither the output for the error file could be read from the retrieved folder. 311 The output file could not be read from the retrieved folder. 312 The error file could not be read from the retrieved folder. 313 The output file is empty. 320 Invalid command line option passed. 400 The output file could not be parsed. 410 The output file could not be parsed into a CifData object. -
codtools.cif_cell_contents
class:aiida_codtools.calculations.cif_cell_contents:CifCellContentsCalculationCalcJob plugin for the `cif_cell_contents` script of the `cod-tools` package.
Input Required Valid types Description ciftrue CifDataThe CIF to be processed. codefalse AbstractCode, NoneTypeThe `Code` to use for this job. This input is required, unless the `remote_folder` input is specified, which means an existing job is being imported and no code will actually be run. metadatafalse monitorsfalse DictAdd monitoring functions that can inspect output files while the job is running and decide to prematurely terminate the job. parametersfalse Dict, NoneTypeCommand line parameters. remote_folderfalse RemoteData, NoneTypeRemote directory containing the results of an already completed calculation job without AiiDA. The inputs should be passed to the `CalcJob` as normal but instead of launching the actual job, the engine will recreate the input files and then proceed straight to the retrieve step where the files of this `RemoteData` will be retrieved as if it had been actually launched through AiiDA. If a parser is defined in the inputs, the results are parsed and attached as output nodes as usual. Output Required Valid types Description formulaetrue DictA dictionary of formulae present in the CIF. remote_foldertrue RemoteDataInput files necessary to run the process will be stored in this folder node. retrievedtrue FolderDataFiles that are retrieved by the daemon will be stored in this node. By default the stdout and stderr of the scheduler will be added, but one can add more by specifying them in `CalcInfo.retrieve_list`. messagesfalse DictWarning and error messages returned by script. remote_stashfalse RemoteStashDataContents of the `stash.source_list` option are stored in this remote folder after job completion. Exit status Message 1 The process has failed with an unspecified error. 2 The process failed with legacy failure mode. 10 The process returned an invalid output. 11 The process did not register a required output. 100 The process did not have the required `retrieved` output. 110 The job ran out of memory. 120 The job ran out of walltime. 131 The specified account is invalid. 140 The node running the job failed. 150 {message} 300 Neither the output for the error file could be read from the retrieved folder. 311 The output file could not be read from the retrieved folder. 312 The error file could not be read from the retrieved folder. 313 The output file is empty. 320 Invalid command line option passed. 400 The output file could not be parsed. 410 The output file could not be parsed into a CifData object. -
codtools.cif_cod_check
class:aiida_codtools.calculations.cif_cod_check:CifCodCheckCalculationCalcJob plugin for the `cif_cod_check` script of the `cod-tools` package.
Input Required Valid types Description ciftrue CifDataThe CIF to be processed. codefalse AbstractCode, NoneTypeThe `Code` to use for this job. This input is required, unless the `remote_folder` input is specified, which means an existing job is being imported and no code will actually be run. metadatafalse monitorsfalse DictAdd monitoring functions that can inspect output files while the job is running and decide to prematurely terminate the job. parametersfalse Dict, NoneTypeCommand line parameters. remote_folderfalse RemoteData, NoneTypeRemote directory containing the results of an already completed calculation job without AiiDA. The inputs should be passed to the `CalcJob` as normal but instead of launching the actual job, the engine will recreate the input files and then proceed straight to the retrieve step where the files of this `RemoteData` will be retrieved as if it had been actually launched through AiiDA. If a parser is defined in the inputs, the results are parsed and attached as output nodes as usual. Output Required Valid types Description messagestrue DictWarning and error messages returned by the script. remote_foldertrue RemoteDataInput files necessary to run the process will be stored in this folder node. retrievedtrue FolderDataFiles that are retrieved by the daemon will be stored in this node. By default the stdout and stderr of the scheduler will be added, but one can add more by specifying them in `CalcInfo.retrieve_list`. remote_stashfalse RemoteStashDataContents of the `stash.source_list` option are stored in this remote folder after job completion. Exit status Message 1 The process has failed with an unspecified error. 2 The process failed with legacy failure mode. 10 The process returned an invalid output. 11 The process did not register a required output. 100 The process did not have the required `retrieved` output. 110 The job ran out of memory. 120 The job ran out of walltime. 131 The specified account is invalid. 140 The node running the job failed. 150 {message} 300 Neither the output for the error file could be read from the retrieved folder. 311 The output file could not be read from the retrieved folder. 312 The error file could not be read from the retrieved folder. 313 The output file is empty. 320 Invalid command line option passed. 400 The output file could not be parsed. 410 The output file could not be parsed into a CifData object. -
codtools.cif_cod_deposit
class:aiida_codtools.calculations.cif_cod_deposit:CifCodDepositCalculationCalcJob plugin for the `cif_cod_deposit` script of the `cod-tools` package.
Input Required Valid types Description ciftrue CifDataThe CIF to be processed. codefalse AbstractCode, NoneTypeThe `Code` to use for this job. This input is required, unless the `remote_folder` input is specified, which means an existing job is being imported and no code will actually be run. metadatafalse monitorsfalse DictAdd monitoring functions that can inspect output files while the job is running and decide to prematurely terminate the job. parametersfalse Dict, NoneTypeCommand line parameters. remote_folderfalse RemoteData, NoneTypeRemote directory containing the results of an already completed calculation job without AiiDA. The inputs should be passed to the `CalcJob` as normal but instead of launching the actual job, the engine will recreate the input files and then proceed straight to the retrieve step where the files of this `RemoteData` will be retrieved as if it had been actually launched through AiiDA. If a parser is defined in the inputs, the results are parsed and attached as output nodes as usual. Output Required Valid types Description remote_foldertrue RemoteDataInput files necessary to run the process will be stored in this folder node. retrievedtrue FolderDataFiles that are retrieved by the daemon will be stored in this node. By default the stdout and stderr of the scheduler will be added, but one can add more by specifying them in `CalcInfo.retrieve_list`. messagesfalse DictWarning and error messages returned by script. remote_stashfalse RemoteStashDataContents of the `stash.source_list` option are stored in this remote folder after job completion. Exit status Message 1 The process has failed with an unspecified error. 2 The process failed with legacy failure mode. 10 The process returned an invalid output. 11 The process did not register a required output. 100 The process did not have the required `retrieved` output. 110 The job ran out of memory. 120 The job ran out of walltime. 131 The specified account is invalid. 140 The node running the job failed. 150 {message} 300 Neither the output for the error file could be read from the retrieved folder. 300 The deposition failed for unknown reasons. 310 The deposition failed because the input was invalid. 311 The output file could not be read from the retrieved folder. 312 The error file could not be read from the retrieved folder. 313 The output file is empty. 320 Invalid command line option passed. 400 The output file could not be parsed. 410 The output file could not be parsed into a CifData object. 410 The deposition failed because one or more CIFs already exist in the COD. 420 The structure is unchanged and so deposition is unnecessary. -
codtools.cif_cod_numbers
class:aiida_codtools.calculations.cif_cod_numbers:CifCodNumbersCalculationCalcJob plugin for the `cif_cod_numbers` script of the `cod-tools` package.
Input Required Valid types Description ciftrue CifDataThe CIF to be processed. codefalse AbstractCode, NoneTypeThe `Code` to use for this job. This input is required, unless the `remote_folder` input is specified, which means an existing job is being imported and no code will actually be run. metadatafalse monitorsfalse DictAdd monitoring functions that can inspect output files while the job is running and decide to prematurely terminate the job. parametersfalse Dict, NoneTypeCommand line parameters. remote_folderfalse RemoteData, NoneTypeRemote directory containing the results of an already completed calculation job without AiiDA. The inputs should be passed to the `CalcJob` as normal but instead of launching the actual job, the engine will recreate the input files and then proceed straight to the retrieve step where the files of this `RemoteData` will be retrieved as if it had been actually launched through AiiDA. If a parser is defined in the inputs, the results are parsed and attached as output nodes as usual. Output Required Valid types Description numberstrue DictMapping of COD IDs found with their formula and count. remote_foldertrue RemoteDataInput files necessary to run the process will be stored in this folder node. retrievedtrue FolderDataFiles that are retrieved by the daemon will be stored in this node. By default the stdout and stderr of the scheduler will be added, but one can add more by specifying them in `CalcInfo.retrieve_list`. messagesfalse DictWarning and error messages returned by script. remote_stashfalse RemoteStashDataContents of the `stash.source_list` option are stored in this remote folder after job completion. Exit status Message 1 The process has failed with an unspecified error. 2 The process failed with legacy failure mode. 10 The process returned an invalid output. 11 The process did not register a required output. 100 The process did not have the required `retrieved` output. 110 The job ran out of memory. 120 The job ran out of walltime. 131 The specified account is invalid. 140 The node running the job failed. 150 {message} 300 Neither the output for the error file could be read from the retrieved folder. 311 The output file could not be read from the retrieved folder. 312 The error file could not be read from the retrieved folder. 313 The output file is empty. 320 Invalid command line option passed. 400 The output file could not be parsed. 410 The output file could not be parsed into a CifData object. -
codtools.cif_filter
class:aiida_codtools.calculations.cif_filter:CifFilterCalculationCalcJob plugin for the `cif_filter` script of the `cod-tools` package.
Input Required Valid types Description ciftrue CifDataThe CIF to be processed. codefalse AbstractCode, NoneTypeThe `Code` to use for this job. This input is required, unless the `remote_folder` input is specified, which means an existing job is being imported and no code will actually be run. metadatafalse monitorsfalse DictAdd monitoring functions that can inspect output files while the job is running and decide to prematurely terminate the job. parametersfalse Dict, NoneTypeCommand line parameters. remote_folderfalse RemoteData, NoneTypeRemote directory containing the results of an already completed calculation job without AiiDA. The inputs should be passed to the `CalcJob` as normal but instead of launching the actual job, the engine will recreate the input files and then proceed straight to the retrieve step where the files of this `RemoteData` will be retrieved as if it had been actually launched through AiiDA. If a parser is defined in the inputs, the results are parsed and attached as output nodes as usual. Output Required Valid types Description ciftrue CifDataThe CIF produced by the script. remote_foldertrue RemoteDataInput files necessary to run the process will be stored in this folder node. retrievedtrue FolderDataFiles that are retrieved by the daemon will be stored in this node. By default the stdout and stderr of the scheduler will be added, but one can add more by specifying them in `CalcInfo.retrieve_list`. messagesfalse DictWarning and error messages returned by script. remote_stashfalse RemoteStashDataContents of the `stash.source_list` option are stored in this remote folder after job completion. Exit status Message 1 The process has failed with an unspecified error. 2 The process failed with legacy failure mode. 10 The process returned an invalid output. 11 The process did not register a required output. 100 The process did not have the required `retrieved` output. 110 The job ran out of memory. 120 The job ran out of walltime. 131 The specified account is invalid. 140 The node running the job failed. 150 {message} 300 Neither the output for the error file could be read from the retrieved folder. 311 The output file could not be read from the retrieved folder. 312 The error file could not be read from the retrieved folder. 313 The output file is empty. 320 Invalid command line option passed. 400 The output file could not be parsed. 410 The output file could not be parsed into a CifData object. -
codtools.cif_select
class:aiida_codtools.calculations.cif_select:CifSelectCalculationCalcJob plugin for the `cif_select` script of the `cod-tools` package.
Input Required Valid types Description ciftrue CifDataThe CIF to be processed. codefalse AbstractCode, NoneTypeThe `Code` to use for this job. This input is required, unless the `remote_folder` input is specified, which means an existing job is being imported and no code will actually be run. metadatafalse monitorsfalse DictAdd monitoring functions that can inspect output files while the job is running and decide to prematurely terminate the job. parametersfalse Dict, NoneTypeCommand line parameters. remote_folderfalse RemoteData, NoneTypeRemote directory containing the results of an already completed calculation job without AiiDA. The inputs should be passed to the `CalcJob` as normal but instead of launching the actual job, the engine will recreate the input files and then proceed straight to the retrieve step where the files of this `RemoteData` will be retrieved as if it had been actually launched through AiiDA. If a parser is defined in the inputs, the results are parsed and attached as output nodes as usual. Output Required Valid types Description ciftrue CifDataThe CIF produced by the script. remote_foldertrue RemoteDataInput files necessary to run the process will be stored in this folder node. retrievedtrue FolderDataFiles that are retrieved by the daemon will be stored in this node. By default the stdout and stderr of the scheduler will be added, but one can add more by specifying them in `CalcInfo.retrieve_list`. messagesfalse DictWarning and error messages returned by script. remote_stashfalse RemoteStashDataContents of the `stash.source_list` option are stored in this remote folder after job completion. Exit status Message 1 The process has failed with an unspecified error. 2 The process failed with legacy failure mode. 10 The process returned an invalid output. 11 The process did not register a required output. 100 The process did not have the required `retrieved` output. 110 The job ran out of memory. 120 The job ran out of walltime. 131 The specified account is invalid. 140 The node running the job failed. 150 {message} 300 Neither the output for the error file could be read from the retrieved folder. 311 The output file could not be read from the retrieved folder. 312 The error file could not be read from the retrieved folder. 313 The output file is empty. 320 Invalid command line option passed. 400 The output file could not be parsed. 410 The output file could not be parsed into a CifData object. -
codtools.cif_split_primitive
class:aiida_codtools.calculations.cif_split_primitive:CifSplitPrimitiveCalculationCalcJob plugin for the `cif_split_primitive` script of the `cod-tools` package.
Input Required Valid types Description ciftrue CifDataThe CIF to be processed. codefalse AbstractCode, NoneTypeThe `Code` to use for this job. This input is required, unless the `remote_folder` input is specified, which means an existing job is being imported and no code will actually be run. metadatafalse monitorsfalse DictAdd monitoring functions that can inspect output files while the job is running and decide to prematurely terminate the job. parametersfalse Dict, NoneTypeCommand line parameters. remote_folderfalse RemoteData, NoneTypeRemote directory containing the results of an already completed calculation job without AiiDA. The inputs should be passed to the `CalcJob` as normal but instead of launching the actual job, the engine will recreate the input files and then proceed straight to the retrieve step where the files of this `RemoteData` will be retrieved as if it had been actually launched through AiiDA. If a parser is defined in the inputs, the results are parsed and attached as output nodes as usual. Output Required Valid types Description cifstrue CifDataThe CIFs produced by the script. remote_foldertrue RemoteDataInput files necessary to run the process will be stored in this folder node. retrievedtrue FolderDataFiles that are retrieved by the daemon will be stored in this node. By default the stdout and stderr of the scheduler will be added, but one can add more by specifying them in `CalcInfo.retrieve_list`. messagesfalse DictWarning and error messages returned by script. remote_stashfalse RemoteStashDataContents of the `stash.source_list` option are stored in this remote folder after job completion. Exit status Message 1 The process has failed with an unspecified error. 2 The process failed with legacy failure mode. 10 The process returned an invalid output. 11 The process did not register a required output. 100 The process did not have the required `retrieved` output. 110 The job ran out of memory. 120 The job ran out of walltime. 131 The specified account is invalid. 140 The node running the job failed. 150 {message} 300 Neither the output for the error file could be read from the retrieved folder. 311 The output file could not be read from the retrieved folder. 312 The error file could not be read from the retrieved folder. 313 The output file is empty. 320 Invalid command line option passed. 400 The output file could not be parsed. 410 The output file could not be parsed into a CifData object. -
codtools.primitive_structure_from_cif
class:aiida_codtools.calculations.functions.primitive_structure_from_cif:primitive_structure_from_cifAttempt to parse the given `CifData` and create a `StructureData` from it. First the raw CIF file is parsed with the given `parse_engine`. The resulting `StructureData` is then passed through SeeKpath to try and get the primitive cell. If that is successful, important structural parameters as determined by SeeKpath will be set as extras on the structure node which is then returned as output. :param cif: the `CifData` node :param parse_engine: the parsing engine, supported libraries 'ase' and 'pymatgen' :param symprec: a `Float` node with symmetry precision for determining primitive cell in SeeKpath :param site_tolerance: a `Float` node with the fractional coordinate distance tolerance for finding overlapping sites. This will only be used if the parse_engine is pymatgen :return: the primitive `StructureData` as determined by SeeKpath
Input Required Valid types Description ciftrue Datathe `CifData` node parse_enginetrue Datathe parsing engine, supported libraries 'ase' and 'pymatgen' site_tolerancetrue Dataa `Float` node with the fractional coordinate distance tolerance for finding overlapping sites. This will only be used if the parse_engine is pymatgen symprectrue Dataa `Float` node with symmetry precision for determining primitive cell in SeeKpath metadatafalse Exit status Message 1 The process has failed with an unspecified error. 2 The process failed with legacy failure mode. 10 The process returned an invalid output. 11 The process did not register a required output.
-
codtools.cif_base
aiida_codtools.parsers.cif_base:CifBaseParser -
codtools.cif_cell_contents
aiida_codtools.parsers.cif_cell_contents:CifCellContentsParser -
codtools.cif_cod_check
aiida_codtools.parsers.cif_cod_check:CifCodCheckParser -
codtools.cif_cod_deposit
aiida_codtools.parsers.cif_cod_deposit:CifCodDepositParser -
codtools.cif_cod_numbers
aiida_codtools.parsers.cif_cod_numbers:CifCodNumbersParser -
codtools.cif_split_primitive
aiida_codtools.parsers.cif_split_primitive:CifSplitPrimitiveParser
-
codtools.cif_clean
class:aiida_codtools.workflows.cif_clean:CifCleanWorkChainWorkChain to clean a `CifData` node using the `cif_filter` and `cif_select` scripts of `cod-tools`. It will first run `cif_filter` to correct syntax errors, followed by `cif_select` which will canonicalize the tags. If a group is passed for the `group_structure` input, the atomic structure library defined by the `engine` input will be used to parse the final cleaned `CifData` to construct a `StructureData` object, which will then be passed to the `SeeKpath` library to analyze it and return the primitive structure
Input Required Valid types Description ciftrue CifDataThe CifData node that is to be cleaned. cif_filtertrue Datacif_selecttrue Datagroup_ciffalse Group, NoneTypeAn optional Group to which the final cleaned CifData node will be added. group_structurefalse Group, NoneTypeAn optional Group to which the final reduced StructureData node will be added. metadatafalse parse_enginefalse StrThe atomic structure engine to parse the cif and create the structure. site_tolerancefalse FloatThe fractional coordinate distance tolerance for finding overlapping sites (pymatgen only). symprecfalse FloatThe symmetry precision used by SeeKpath for crystal symmetry refinement. Output Required Valid types Description ciftrue CifDataThe cleaned CifData node. structurefalse StructureDataThe primitive cell structure created with SeeKpath from the cleaned CifData. Exit status Message 1 The process has failed with an unspecified error. 2 The process failed with legacy failure mode. 10 The process returned an invalid output. 11 The process did not register a required output. 401 The CifFilterCalculation step failed. 402 The CifSelectCalculation step failed. 410 The cleaned CifData contains sites with unknown species. 411 The cleaned CifData defines no atomic sites. 412 The cleaned CifData defines sites with attached hydrogens with incomplete positional data. 413 The cleaned CifData defines sites with invalid atomic occupancies. 414 Failed to parse a StructureData from the cleaned CifData. 420 SeeKpath failed to determine the primitive structure. 421 SeeKpath detected inconsistent symmetry operations.
-
aiida-codtools
aiida_codtools.cli:cmd_root