def _fill_missing_dims(dims_ntraces, ntraces, dim_names, dim_lens):
    """Make a new dimension (if necessary) for unaccounted traces."""
    if dims_ntraces < ntraces:
        dim_names.insert(0, 'Traces')
        dim_lens.insert(0, int(ntraces / dims_ntraces))
