Coverage for ase/io/nomad_json.py: 87.50%
8 statements
« prev ^ index » next coverage.py v7.16.2, created at 2026-11-27 15:21 +0000
« prev ^ index » next coverage.py v7.16.2, created at 2026-11-27 15:21 +0000
1from ase.nomad import read as _read_nomad_json
4def read_nomad_json(fd, index):
5 # wth, we should not be passing index like this!
6 from ase.io.formats import string2index
8 if isinstance(index, str):
9 index = string2index(index)
11 d = _read_nomad_json(fd)
12 images = list(d.iterimages())
13 return images[index]