Example #1
0
def test_filter_compatible(unstrained_structure, all_symmetries):
    assert (
        len(
            sr.filter_compatible(
                all_symmetries, structure=unstrained_structure
            )
        ) == len(all_symmetries)
    )
Example #2
0
def test_nested_filter(structure, symmetries_file_content):
    print(structure)
    sr.filter_compatible(symmetries_file_content, structure=structure)
def test_nested_filter(structure, symmetries_file_content):  # pylint: disable=redefined-outer-name
    print(structure)
    sr.filter_compatible(symmetries_file_content, structure=structure)
def test_filter_compatible_strained(strained_structure, all_symmetries):  # pylint: disable=redefined-outer-name
    assert (len(
        sr.filter_compatible(all_symmetries,
                             structure=strained_structure)) == 5)