httk.io.cif.mcif_parser¶
Functions¶
|
Return the parent propagation basis as a list of |
|
Return |
|
Return the |
|
|
|
Parse an msCIF _space_group_symop_magn_ssg_operation.algebraic string. |
|
|
|
moments_cryst : list of N vectors [mx, my, mz] in crystal coordinates |
|
|
|
|
|
|
|
Module Contents¶
- httk.io.cif.mcif_parser.extract_parent_q_basis(cifblock)[source]¶
Return the parent propagation basis as a list of
(kx, ky, kz)tuples, orNoneif it is not present.
- httk.io.cif.mcif_parser.extract_fourier_coeffs(cifblock, max_q_guess=12)[source]¶
Return
(coeff_rows, m)wherecoeff_rowsis a list of coefficient tuples(c1, c2, ..., cm)andmis the number of q-vectors detected (>= 0).All present
q{i}_coeffcolumns are found, zipped row-wise with missing entries filled by zeros, and duplicate coefficient tuples are removed.
- httk.io.cif.mcif_parser.extract_fourier(cifblock)[source]¶
Return the
(basis, coeffs)descriptor, orNoneif there is insufficient data.basiscomes fromparent_propagation_vector.kxkykzandcoeffsare the unique coefficient tuples fromatom_site_Fourier_wave_vector.q*_coeff.
- httk.io.cif.mcif_parser.xyzt_symops_to_matrix(symops_xyz, use_fractions=False, time_reversal_convention='mcif')[source]¶
- httk.io.cif.mcif_parser.parse_alg_op(op, use_fractions=False, time_reversal_convention='mcif')[source]¶
Parse an msCIF _space_group_symop_magn_ssg_operation.algebraic string.
- Examples of op:
‘x1,x2,x3,x4,x5,x6,+1’ ‘x1,x2,x3,x4+1/2,-1’ ‘x1+1/2,x2+1/2,-x3,-x4,-1’ ‘x1-x2,x1,x3+1/3,x4-1/6,x5,+1’
- Returns (R, t, time):
R: 3x3 list of rows with entries in {-1,0,1} t: length-3 list of floats (or Fractions if use_fractions=True) time: +1 / -1 (or mapped for spglib)
- httk.io.cif.mcif_parser.alg_symops_to_matrix(symops_alg, use_fractions=False, time_reversal_convention='mcif')[source]¶