Coverage for /builds/debichem-team/python-ase/ase/io/nomad_json.py: 87.50%
8 statements
« prev ^ index » next coverage.py v7.5.3, created at 2025-03-06 04:00 +0000
« prev ^ index » next coverage.py v7.5.3, created at 2025-03-06 04:00 +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
7 if isinstance(index, str):
8 index = string2index(index)
10 d = _read_nomad_json(fd)
11 images = list(d.iterimages())
12 return images[index]