Skip to content
Snippets Groups Projects
Commit 70c8ba57 authored by Lauri Himanen's avatar Lauri Himanen
Browse files

Changed the python pickle protocol to 2 to support python2.

parent 9e3c8a36
No related branches found
No related tags found
No related merge requests found
...@@ -142,7 +142,7 @@ def generate_pickle(filepath): ...@@ -142,7 +142,7 @@ def generate_pickle(filepath):
input_tree = generate_input_tree(filepath) input_tree = generate_input_tree(filepath)
file_name = "../versions/cpmd41/input_data/cpmd_input_tree.pickle" file_name = "../versions/cpmd41/input_data/cpmd_input_tree.pickle"
fh = open(file_name, "wb") fh = open(file_name, "wb")
pickle.dump(input_tree, fh) pickle.dump(input_tree, fh, protocol=2)
#=============================================================================== #===============================================================================
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment