fixed minor bugs while developing Bcpnn.in place trace comp
plot_sweep_data as cmap: use np.unique with return_index and return_inverse