<commit_before>import rml.machines


def test_machine_load_elements():
    lattice = rml.machines.get_elements(machine='SRI21', elemType='BPM')
    assert len(lattice) == 173
<commit_msg>Test to get different pv names for an element<commit_after>import rml.machines


def test_machine_load_elements():
    lattice = rml.machines.get_elements(machine='SRI21', elemType='BPM')
    assert len(lattice) == 173
    for element in lattice.get_elements():
        assert element.get_pv_name('readback')

{'fraction_non_alphanumeric': 0.11088709677419355, 'fraction_numerical': 0.020161290322580645, 'mean_word_length': 5.291139240506329, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6235930', 'n_tokens_mistral': 173, 'n_tokens_neox': 160, 'n_words': 34}