Skip to content

Commit

Permalink
use pickle.load
Browse files Browse the repository at this point in the history
Co-authored-by: kalvdans <[email protected]>
  • Loading branch information
JohanSchott and kalvdans authored Mar 26, 2024
1 parent 99eae10 commit 84bb9cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion impurityModel/ed/get_spectra.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 84bb9cd

Please sign in to comment.