

def hostname_to_hrn(auth_hrn, login_base, hostname):
    '\n    Convert hrn to plantelab name.\n    '
    sfa_hostname = '.'.join([auth_hrn, login_base, hostname.split('.')[0]])
    return sfa_hostname

dataset/ETHPy150Open fp7-ofelia/ocf/expedient/src/python/sfa/util/namespace.py hostname_to_hrn/original