parameters: (self, fid, fstyle, ftype, nrow=0, ncol=0)
return_statement: return value
docstring: Retrieve data from a LAMMPS fix
  
      This is a wrapper around the :py:meth:`lammps.extract_fix() <lammps.lammps.extract_fix()>` method.
      It behaves the same as the original method, but returns NumPy arrays
      instead of ``ctypes`` pointers.
  
      :param fid: fix ID
      :type fid:  string
      :param fstyle: style of the data retrieve (global, atom, or local), see :ref:`py_style_constants`
      :type fstyle:  int
      :param ftype: type or size of the returned data (scalar, vector, or array), see :ref:`py_type_constants`
      :type ftype:  int
      :param nrow: index of global vector element or row index of global array element
      :type nrow:  int
      :param ncol: column index of global array element
      :type ncol:  int
      :return: requested data
      :rtype: integer or double value, pointer to 1d or 2d double array  or None
docstring_summary: Retrieve data from a LAMMPS fix
docstring_tokens: Retrieve data from a LAMMPS fix
function: def extract_fix(self, fid, fstyle, ftype, nrow=0, ncol=0):
      """Retrieve data from a LAMMPS fix
  
      This is a wrapper around the :py:meth:`lammps.extract_fix() <lammps.lammps.extract_fix()>` method.
      It behaves the same as the original method, but returns NumPy arrays
      instead of ``ctypes`` pointers.
  
      :param fid: fix ID
      :type fid:  string
      :param fstyle: style of the data retrieve (global, atom, or local), see :ref:`py_style_constants`
      :type fstyle:  int
      :param ftype: type or size of the returned data (scalar, vector, or array), see :ref:`py_type_constants`
      :type ftype:  int
      :param nrow: index of global vector element or row index of global array element
      :type nrow:  int
      :param ncol: column index of global array element
      :type ncol:  int
      :return: requested data
      :rtype: integer or double value, pointer to 1d or 2d double array  or None
  
      """
      value = self.lmp.extract_fix(fid, fstyle, ftype, nrow, ncol)
      if fstyle == LMP_STYLE_ATOM:
        if ftype == LMP_TYPE_VECTOR:
          nlocal = self.lmp.extract_global("nlocal")
          return self.darray(value, nlocal)
        elif ftype == LMP_TYPE_ARRAY:
          nlocal = self.lmp.extract_global("nlocal")
          ncols = self.lmp.extract_fix(fid, fstyle, LMP_SIZE_COLS, 0, 0)
          return self.darray(value, nlocal, ncols)
      elif fstyle == LMP_STYLE_LOCAL:
        if ftype == LMP_TYPE_VECTOR:
          nrows = self.lmp.extract_fix(fid, fstyle, LMP_SIZE_ROWS, 0, 0)
          return self.darray(value, nrows)
        elif ftype == LMP_TYPE_ARRAY:
          nrows = self.lmp.extract_fix(fid, fstyle, LMP_SIZE_ROWS, 0, 0)
          ncols = self.lmp.extract_fix(fid, fstyle, LMP_SIZE_COLS, 0, 0)
          return self.darray(value, nrows, ncols)
      return value
function_tokens: def extract_fix ( self , fid , fstyle , ftype , nrow = 0 , ncol = 0 ) : value = self . lmp . extract_fix ( fid , fstyle , ftype , nrow , ncol ) if fstyle == LMP_STYLE_ATOM : if ftype == LMP_TYPE_VECTOR : nlocal = self . lmp . extract_global ( "nlocal" ) return self . darray ( value , nlocal ) elif ftype == LMP_TYPE_ARRAY : nlocal = self . lmp . extract_global ( "nlocal" ) ncols = self . lmp . extract_fix ( fid , fstyle , LMP_SIZE_COLS , 0 , 0 ) return self . darray ( value , nlocal , ncols ) elif fstyle == LMP_STYLE_LOCAL : if ftype == LMP_TYPE_VECTOR : nrows = self . lmp . extract_fix ( fid , fstyle , LMP_SIZE_ROWS , 0 , 0 ) return self . darray ( value , nrows ) elif ftype == LMP_TYPE_ARRAY : nrows = self . lmp . extract_fix ( fid , fstyle , LMP_SIZE_ROWS , 0 , 0 ) ncols = self . lmp . extract_fix ( fid , fstyle , LMP_SIZE_COLS , 0 , 0 ) return self . darray ( value , nrows , ncols ) return value