read_saved_json

atomate2.lobster.schemas.read_saved_json(filename, pymatgen_objs=True, query='structure')[source]

Read the data from *.json.gz file corresponding to query.

Uses ijson to parse specific keys(memory efficient)

Parameters:
  • filename (str.) – name of the json file to read

  • pymatgen_objs (bool.) – if True will convert structure,coop, cobi, cohp and dos to pymatgen objects

  • query (str or None.) – field name to query from the json file. If None, all data will be returned.

Returns:

Returns a dictionary with lobster task json data corresponding to query.

Return type:

dict