pyJoules/device/rapl_device.py
def available_package_domains() -> List[RaplPackageDomain]:
        """
        return a the list of the available energy Package domains
        """
        package_domains = []

        for socket_id in RaplDevice._get_socket_id_list():
            domain_name_file_str = RAPL_API_DIR + '/intel-rapl:' + str(socket_id) + '/name'
            if os.path.exists(domain_name_file_str):
                 with open(domain_name_file_str) as domain_name_file:
                     if domain_name_file.readline() == 'package-' + str(socket_id) + '\n':
                         package_domains.append(RaplPackageDomain(socket_id))
        return package_domains

        return a the list of the available energy Package domains
        
return a the list of the available energy Package domains
return a the list of the available energy Package domains
def available_package_domains() -> List[RaplPackageDomain]:
        package_domains = []
        for socket_id in RaplDevice._get_socket_id_list():
            domain_name_file_str = RAPL_API_DIR + '/intel-rapl:' + str(socket_id) + '/name'
            if os.path.exists(domain_name_file_str):
                 with open(domain_name_file_str) as domain_name_file:
                     if domain_name_file.readline() == 'package-' + str(socket_id) + '\n':
                         package_domains.append(RaplPackageDomain(socket_id))
        return package_domains
def available_package_domains ( ) -> List [ RaplPackageDomain ] : package_domains = [ ] for socket_id in RaplDevice . _get_socket_id_list ( ) : domain_name_file_str = RAPL_API_DIR + '/intel-rapl:' + str ( socket_id ) + '/name' if os . path . exists ( domain_name_file_str ) : with open ( domain_name_file_str ) as domain_name_file : if domain_name_file . readline ( ) == 'package-' + str ( socket_id ) + '\n' : package_domains . append ( RaplPackageDomain ( socket_id ) ) return package_domains
return a the list of the available energy Package domains
return a the list of the available energy Package domains
"""
        return a the list of the available energy Package domains
        """