Skip to content

Commit

Permalink
mtn: added new test for the next added file
Browse files Browse the repository at this point in the history
It has 2 species
  • Loading branch information
zerothi committed Nov 29, 2022
1 parent 3108137 commit 9b7d872
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions sisl/io/siesta/tests/test_orb_indx.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,18 @@ def test_si_pdos_kgrid_orb_indx(sisl_files):
atoms = orbindxSileSiesta(f).read_basis()

assert len(atoms) == 2
assert atoms.nspecie == 1
assert len(atoms[0]) == 13
assert len(atoms[1]) == 13


def test_sih_orb_indx(sisl_files):
f = sisl_files(_dir, 'sih.ORB_INDX')
nsc = orbindxSileSiesta(f).read_supercell_nsc()
assert np.all(nsc == 1)
atoms = orbindxSileSiesta(f).read_basis()

assert len(atoms) == 65
assert atoms.nspecie == 2
assert len(atoms[0]) == 4
assert len(atoms[-1]) == 1

0 comments on commit 9b7d872

Please sign in to comment.