castep_outputs.parsers.cell_param_file_parser#
Parse castep .cell and .param files.
Functions
Parse castep .cell and param files. |
|
Parse castep .cell and param files. |
|
Parse castep .cell and param files. |
Classes
Non-linear constraint information. |
|
Information from positions block. |
|
Information from XC definitions block. |
|
XC definition params. |
- class castep_outputs.parsers.cell_param_file_parser.NonLinearConstraint[source]#
Bases:
TypedDictNon-linear constraint information.
- atoms: dict[castep_outputs.utilities.datatypes.AtomIndex, castep_outputs.utilities.datatypes.ThreeVector]#
Atoms and constraint definition.
- key: Literal['distance', 'bend', 'torsion']#
Type of non-linear constraint.
- class castep_outputs.parsers.cell_param_file_parser.PositionsInfo[source]#
Bases:
TypedDictInformation from positions block.
- mix_index: int#
Mixture index.
- pos: ThreeVector#
Atomic position.
- spin: float#
Ion spin.
- units: str#
Units.
- weight: float#
Mixture weight.
- class castep_outputs.parsers.cell_param_file_parser.XCDef[source]#
Bases:
TypedDictInformation from XC definitions block.
- class castep_outputs.parsers.cell_param_file_parser.XCDefParams[source]#
Bases:
TypedDictXC definition params.
- castep_outputs.parsers.cell_param_file_parser.parse_cell_file(cell_param_file)#
- castep_outputs.parsers.cell_param_file_parser.parse_cell_file(cell_param_file)
- castep_outputs.parsers.cell_param_file_parser.parse_cell_file(cell_param_file)
Parse castep .cell and param files.
- Parameters:
cell_param_file (TextIO) – Open handle to file to parse.
- Returns:
Parsed info.
- Return type:
list[dict[str, str | float | tuple[float, str] | dict[str, Any] | dict[str | tuple[str, int], str | dict[str, float]] | dict[str, Sequence[str | float | dict[str, str | float]] | str | float | dict[str, str | float] | dict[str, Sequence[str | float | dict[str, str | float]] | str | float | dict[str, str | float]]] | XCDef]]
- castep_outputs.parsers.cell_param_file_parser.parse_cell_param_file(cell_param_file)[source]#
- castep_outputs.parsers.cell_param_file_parser.parse_cell_param_file(cell_param_file)
- castep_outputs.parsers.cell_param_file_parser.parse_cell_param_file(cell_param_file)
Parse castep .cell and param files.
- Parameters:
cell_param_file (TextIO) – Open handle to file to parse.
- Returns:
Parsed info.
- Return type:
list[dict[str, str | float | tuple[float, str] | dict[str, Any] | dict[str | tuple[str, int], str | dict[str, float]] | dict[str, Sequence[str | float | dict[str, str | float]] | str | float | dict[str, str | float] | dict[str, Sequence[str | float | dict[str, str | float]] | str | float | dict[str, str | float]]] | XCDef]]
- castep_outputs.parsers.cell_param_file_parser.parse_param_file(cell_param_file)#
- castep_outputs.parsers.cell_param_file_parser.parse_param_file(cell_param_file)
- castep_outputs.parsers.cell_param_file_parser.parse_param_file(cell_param_file)
Parse castep .cell and param files.
- Parameters:
cell_param_file (TextIO) – Open handle to file to parse.
- Returns:
Parsed info.
- Return type:
list[dict[str, str | float | tuple[float, str] | dict[str, Any] | dict[str | tuple[str, int], str | dict[str, float]] | dict[str, Sequence[str | float | dict[str, str | float]] | str | float | dict[str, str | float] | dict[str, Sequence[str | float | dict[str, str | float]] | str | float | dict[str, str | float]]] | XCDef]]