import json


def read_systematic(infile='../data/run.17.json'):
    """Read systematic error file."""
#     with open('../data/run.17.json', 'w') as fp:
#         json.dump(run17, fp, indent=4, sort_keys=True)
    with open(infile, 'r') as fp:
        temp = dict(json.load(fp))
    return {int(k):v for k, v in temp.items()}