def _sphere_pot_or_field(rr, mri_rr, mri_Q, coils, sphere, bem_rr, n_jobs, coil_type):
 fun = (_eeg_spherepot_coil if (coil_type == 'eeg') else _sphere_field)
 (parallel, p_fun, _) = parallel_func(fun, n_jobs)
 B = np.concatenate(parallel((p_fun(r, coils, sphere) for r in np.array_split(rr, n_jobs))))
 return B

def _sphere_pot_or_field ( rr , mri_rr , mri_Q , coils , sphere , bem_rr , n_jobs , coil_type ) : fun = ( _eeg_spherepot_coil if ( coil_type == 'eeg' ) else _sphere_field ) ( parallel , p_fun , _ ) = parallel_func ( fun , n_jobs ) B = np . concatenate ( parallel ( ( p_fun ( r , coils , sphere ) for r in np . array_split ( rr , n_jobs ) ) ) ) return B
do potential or field for spherical model .