generate_Ch_list

sknano.core.structures.generate_Ch_list(ns=None, ni=None, nf=None, dn=None, ms=None, mi=None, mf=None, dm=None, imax=None, chiral_types=None, handedness=None, echo_zsh_str=False)[source] [edit on github][source]

Generate a list of \((n, m)\) chiralities.

Parameters:
  • ms (ns,) – list of \(n\) and \(m\) chiral indices.
  • nf, dn (ni,) – \((n_i, n_f, \Delta n)\) denote the start, stop, and step parameters passed to the numpy function np.arange, to generate an array of evenly spaced \(n\) chiral indices. ni only required if ns sequence kwarg is None.
  • mf, dm (mi,) – \((m_i, m_f, \Delta m)\) denote the start, stop, and step parameters passed to the numpy function np.arange, to generate an array of evenly spaced \(m\) chiral indices. mi only required if ms sequence kwarg is None.
  • imax (int, optional) – maximum chiral index \(n = m = i_{max}\).
  • chiral_types ({'all', 'achiral', 'chiral', 'armchair', 'zigzag'}, optional) –
  • handedness ({'all', 'left', 'right'}, optional) –
  • echo_zsh_str (bool, optional) –
Returns:

Ch_list – list of chiralities

Return type:

sequence