def _ensure_like_indices(time, panels):
n_time = len(time)<EOL>n_panel = len(panels)<EOL>u_panels = np.unique(panels)  <EOL>u_time = np.unique(time)<EOL>if len(u_time) == n_time:<EOL><INDENT>time = np.tile(u_time, len(u_panels))<EOL><DEDENT>if len(u_panels) == n_panel:<EOL><INDENT>panels = np.repeat(u_panels, len(u_time))<EOL><DEDENT>return time, panels<EOL>
Makes sure that time and panels are conformable.