def consistentChans(chan: str) ->str:
    """Convert channels to ensure consistency

    Parameters
    ----------
    chan : str
        Channel name

    Returns
    -------
    out : str
        Converted channel name 
    """
    standardChans = ['Hx', 'Hy', 'Hz', 'Ex', 'Ey']
    if chan in standardChans:
        return chan
    if chan == 'Bx':
        return 'Hx'
    if chan == 'By':
        return 'Hy'
    if chan == 'Bz':
        return 'Hz'
    return chan
