From 84bb9cd7c2742f1c41c1cb530b33b373ab2288a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20Sch=C3=B6tt?= Date: Tue, 26 Mar 2024 21:57:54 +0100 Subject: [PATCH] use pickle.load Co-authored-by: kalvdans --- impurityModel/ed/get_spectra.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/impurityModel/ed/get_spectra.py b/impurityModel/ed/get_spectra.py index e018baa..01856f0 100644 --- a/impurityModel/ed/get_spectra.py +++ b/impurityModel/ed/get_spectra.py @@ -418,7 +418,7 @@ def get_hamiltonian_operator(nBaths, nValBaths, slaterCondon, SOCs, DCinfo, hFie def read_pickled_file(filename: str): with open(filename, "rb") as handle: - content = pickle.loads(handle.read()) + content = pickle.load(handle) return content