print

Function: set_crystal_cell

Reference

Home

List of PyCrysFML08 Dictionaries

List of PyCrysFML08 Functions

Use

set_crystal_cell is used for creating a dictionary of type cell_g_type or cell_gls_type.

function call

r = set_crystal_cell(abc: ndarray, albega: ndarray, kwargs: dict)

VariableTypeDescription
abcndarray;dtype=float32, shape=3a,b,c lattice parameters.
albegandarray;dtype=float32, shape=3alpha, beta, gamma lattice angles.
kwargsdictOptional arguments. The keywords for the optional arguments are: cartype,sd_abc,sd_albega.
 cartypestrOrientation. Allowed values: "AB" | "BA" | "BC" | "CA". Default: "CA", x // a.
 sd_abcndarray;dtype=float32, shape=3Standard deviations for a,b,c
 sd_albegandarray;dtype=float32, shape=3Standard deviations for alpha,beta,gamma
rtuple

The tuple returned by the function.

r[0] : int, error code. If non-zero, an error has occurred.

r[1] : str, error message.

r[2]: dict, the unit cell, a dictionary of type cell_g_type or cell_gls_type. If optional arguments sd_abc and / or sd_albega are present, the type returned is cell_gls_type. Otherwise, it is cell_g_type.

examples

Example 1: Set an hexagonal cell