def get_location(well_name, char2num):
    """
    calculates for a well's name its row and column indices in an array that represents the plate.

    Parameters
    ----------
    well_name: str
        the name of the well in the form "B - 02" when 2 is the column and B is the row
    char2num: dict
        A dictionary indicating the order of the different rows from left to right in the plate

    Returns
    -------
    row, col : int
        indices (starting count from zero) of the well in an array that represents the plate
    """
    row = char2num[well_name[0]]
    col = int(well_name[4:]) - 1
    return row, col