Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1from ase.nomad import read as _read_nomad_json 

2 

3 

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) 

9 

10 d = _read_nomad_json(fd) 

11 images = list(d.iterimages()) 

12 return images[index]