def _get_chan_from_name(nm):
    """Extract channel number from filename.

    Given a ABI filename, extract the channel number.

    Args:
        nm (str): Filename / path to ABI file

    Returns:
        int: channel number
    """
    return int(nm.split("/")[-1].split("-")[3][3:5])