def load_field(path):
path = pathlib.Path(path)<EOL>phase = load_file(path)<EOL>inten = load_file(path.parent / (path.name[:-<NUM_LIT:10>] + "<STR_LIT>"))<EOL>ampli = np.sqrt(inten)<EOL>return ampli * np.exp(<NUM_LIT> * phase)<EOL>
Load QPI data using *_phase.txt files