qc2.ase.dirac_io
Input/Output functions for Rose.
Module Contents
Functions
|
Updates a dict with a new key-value pair and put it at first position. |
|
Recursively replaces underscores in dict keys and values with spaces. |
|
Formats the input value. |
|
Writes a block of formatted data. |
|
Writes DIRAC input data to a file. |
|
Reads DIRAC output data from a file. |
Attributes
- qc2.ase.dirac_io._update_dict(dictionary: Dict[str, Any], key: str, value: Any) Dict[str, Any][source]
Updates a dict with a new key-value pair and put it at first position.
- Parameters:
dictionary – The original dictionary to be updated.
key – The key of the new element to be added.
value – The value of the new element to be added.
- Returns:
The updated dictionary with the new key-value pair at first position.
- qc2.ase.dirac_io._replace_underscores(dictionary: Dict[str, Any]) Dict[str, Any][source]
Recursively replaces underscores in dict keys and values with spaces.
- Parameters:
dictionary – The dictionary to be processed.
- Returns:
The dictionary with underscores replaced by spaces.
- qc2.ase.dirac_io._format_value(arg: Any) str[source]
Formats the input value.
- Parameters:
arg – The value to be formatted.
- Returns:
The formatted value as a string.
- qc2.ase.dirac_io._write_block(name: str, args: Dict[str, Any]) str[source]
Writes a block of formatted data.
- Parameters:
name – The name of the block.
args – The dictionary containing the data for the block.
- Returns:
The formatted block as a string.