print

Function: h_uni

Reference

Home

List of PyCrysFML08 Dictionaries

List of PyCrysFML08 Functions

USE

h_uni computes unique reflections between two values of sin(theta) / lambda, given a space group and a unit cell.

function call

r = h_uni(cell : dict, spg : dict, friedel : bool, vmin : float, vmax : float, code : str, maxref : int, kwargs : dict)

VariableTypeDescription
celldictUnit cell. It must be a dictionary of type cell_g_type or cell_gls_type. It can be generated with the function set_crystal_cell.
spgdictThe space group. It must be a dictionary of type spg_type. It can be generated with the function set_spacegroup.
friedelboolIf True, apply Friedel's  law.
vminfloatLower limit of sin(theta) / lambda.
vmaxfloatUpper limit of sin(theta) / lambda.
codestrIf code = 'r', input corresponds to d-spacing.
maxrefintMaximum number of reflections that can be generated.
kwargsdictOptional arguments. Available keys: ord, hlim.
 hlimndarray; dtype=int32; shape=(3,2)Lower / upper limits for h,k,l.
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 list of reflections, a dictionary of type refl_list_type.

examples