def get_scan_parameters_index(scan_parameter):
_, index = np.unique(scan_parameter, return_index=True)<EOL>index = np.sort(index)<EOL>values = np.array(list(range(<NUM_LIT:0>, len(index))), dtype='<STR_LIT>')<EOL>index = np.append(index, len(scan_parameter))<EOL>counts = np.diff(index)<EOL>return np.repeat(values, counts)<EOL>
Takes the scan parameter array and creates a scan parameter index labeling the unique scan parameter combinations.
    Parameters
    ----------
    scan_parameter : numpy.ndarray
        The table with the scan parameters.

    Returns
    -------
    numpy.Histogram