parameters: (self)
return_statement: return np.ctypeslib.as_array(value).reshape(nbonds,3)
docstring: Retrieve global list of bonds as NumPy array
  
      This is a wrapper around :py:meth:`lammps.gather_bonds() <lammps.lammps.gather_bonds()>`
      It behaves the same as the original method, but returns a NumPy array instead
      of a ``ctypes`` list.
  
      .. versionadded:: 28Jul2021
  
      :return: the requested data as a 2d-integer numpy array
      :rtype: numpy.array(nbonds,3)
docstring_summary: Retrieve global list of bonds as NumPy array
docstring_tokens: Retrieve global list of bonds as NumPy array
function: def gather_bonds(self):
      """Retrieve global list of bonds as NumPy array
  
      This is a wrapper around :py:meth:`lammps.gather_bonds() <lammps.lammps.gather_bonds()>`
      It behaves the same as the original method, but returns a NumPy array instead
      of a ``ctypes`` list.
  
      .. versionadded:: 28Jul2021
  
      :return: the requested data as a 2d-integer numpy array
      :rtype: numpy.array(nbonds,3)
      """
      import numpy as np
      nbonds, value = self.lmp.gather_bonds()
      return np.ctypeslib.as_array(value).reshape(nbonds,3)
function_tokens: def gather_bonds ( self ) : import numpy as np nbonds , value = self . lmp . gather_bonds ( ) return np . ctypeslib . as_array ( value ) . reshape ( nbonds , 3 )