def scanner_port(s):
    """
    Break up a port name into scanner and port number.
    The naming convention used by the DTC Initium is that
    pressure ports are named XYZ where X is the number of the
    scanner and YZ is the port number in said scanner.

    This function receives a port name and makes sure it is a
    string of the format "XYZ". If it is an integer, the integer
    is transformed into a such a string. The integers `X` and `XY`
    are returned.
    """
    s = str(s)
    if len(s) != 3:
        raise ValueError("Port %s is not a valid port" % s)
    sc = int(s[0])
    p = int(s[1:])
    
    return sc, p