Esempio n. 1
0
def test_special_species(SPECIAL_SPECIES_STRUCTURES):
    """Make sure vacancies and non-chemical symbols ("X") are handled"""
    for special_structure in SPECIAL_SPECIES_STRUCTURES:
        structure = Structure(special_structure)

        assert isinstance(get_pdb(structure), str)
Esempio n. 2
0
def test_successful_conversion(RAW_STRUCTURES):
    """Make sure its possible to convert"""
    for structure in RAW_STRUCTURES:
        assert isinstance(get_pdb(Structure(structure)), str)
Esempio n. 3
0
def test_null_lattice_vectors(null_lattice_vector_structure):
    """Make sure null lattice vectors are handled"""
    assert isinstance(get_pdb(null_lattice_vector_structure), str)
Esempio n. 4
0
def test_null_positions(null_position_structure):
    """Make sure null positions are handled"""
    assert isinstance(get_pdb(null_position_structure), str)