message: Core: added Python bindings for pinning and atom type setters.
diff: @@ -126,3 +126,31 @@ def spin_spiral(p_state, direction_type, q_vector, axis, theta, pos=[0,0,0],
  vec3(*border_rectangular), ctypes.c_float(border_cylindrical),
  ctypes.c_float(border_spherical), ctypes.c_bool(inverted),
  ctypes.c_int(idx_image), ctypes.c_int(idx_chain))
  +
  +
  +### Pin spins in a selected area
  +_Pin = _spirit.Configuration_Pin
  +_Pin.argtypes = [ctypes.c_void_p, ctypes.POINTER(ctypes.c_float),
  + ctypes.POINTER(ctypes.c_float), ctypes.c_float, ctypes.c_float, ctypes.c_bool,
  + ctypes.c_int, ctypes.c_int]
  +_Pin.restype = None
  +def pin(p_state, pos=[0.0,0.0,0.0], border_rectangular=[-1.0,-1.0,-1.0], border_cylindrical=-1.0,
  + border_spherical=-1.0, inverted=False, idx_image=-1, idx_chain=-1):
  + vec3 = ctypes.c_float * 3
  + _Pin(ctypes.c_void_p(p_state), vec3(*pos), vec3(*border_rectangular),
  + ctypes.c_float(border_cylindrical), ctypes.c_float(border_spherical),
  + ctypes.c_bool(inverted), ctypes.c_int(idx_image), ctypes.c_int(idx_chain))
  +
  +
  +### Set atom types in a selected area
  +_Atom_Type = _spirit.Configuration_Atom_Type
  +_Atom_Type.argtypes = [ctypes.c_void_p, ctypes.c_int, ctypes.POINTER(ctypes.c_float),
  + ctypes.POINTER(ctypes.c_float), ctypes.c_float, ctypes.c_float, ctypes.c_bool,
  + ctypes.c_int, ctypes.c_int]
  +_Atom_Type.restype = None
  +def atom_type(p_state, atom_type=0, pos=[0.0,0.0,0.0], border_rectangular=[-1.0,-1.0,-1.0], border_cylindrical=-1.0,
  + border_spherical=-1.0, inverted=False, idx_image=-1, idx_chain=-1):
  + vec3 = ctypes.c_float * 3
  + _Atom_Type(ctypes.c_void_p(p_state), ctypes.c_int(atom_type), vec3(*pos), vec3(*border_rectangular),
  + ctypes.c_float(border_cylindrical), ctypes.c_float(border_spherical),
  + ctypes.c_bool(inverted), ctypes.c_int(idx_image), ctypes.c_int(idx_chain))
  \ No newline at end of file
  