コード例 #1
0
ファイル: test_atoms.py プロジェクト: tfrederiksen/sisl
def test_remove1():
    atom = Atoms(['C', 'Au'])
    atom = atom.remove(1)
    atom = atom.reduce()
    assert atom[0] == Atom[6]
    assert len(atom) == 1
    assert len(atom.atom) == 1
コード例 #2
0
ファイル: test_atom.py プロジェクト: cationly/sisl
 def test_remove1(self):
     atom = Atoms(['C', 'Au'])
     atom = atom.remove(1)
     atom = atom.reduce()
     assert_true(atom[0] == Atom[6])
     assert_true(len(atom) == 1)
     assert_true(len(atom.atom) == 1)