def METHOD_NAME(miller_arrays, indices_selected, phis_selected, foms_selected):
  flex_phib = miller_arrays[1].data()
  flex_fomb = miller_arrays[2].data()
  for i in range(len(indices_selected)):
    flex_phib[indices_selected[i]] = phis_selected[i]
    flex_fomb[indices_selected[i]] = foms_selected[i]
  miller_arrays_out = []
  miller_arrays_out.append(miller_arrays[0])
  miller_arrays_out.append(miller_arrays[1].customized_copy(data=flex_phib))
  miller_arrays_out.append(miller_arrays[2].customized_copy(data=flex_fomb))
  miller_arrays_out.append(miller_arrays[3])
  miller_arrays_out.append(miller_arrays[4])
  return miller_arrays_out