def dmrg_json_utils.LoadJSONFile (   path,
  appendStr,
  count = 0 
)

Loads data from a JSON file and corrects unfinished runs by appending a string to the file.

Parameters
pathpath to json file
appendStrstring to append in case of a JSONDecodeError
countnumber of times this function was called recursively
Returns
dict object representing the loaded data
Exceptions
ExceptionUnable to correctly load the file with the appended string.
Note
For portability, this function detects a ValueError instead of a JSONDecodeError which inherits from it.

Definition at line 35 of file dmrg_json_utils.py.

Referenced by LoadJSONArray(), LoadJSONDict(), and LoadJSONTable().

This site was generated by Sphinx using Doxygen with a customized theme from doxygen-bootstrapped.