Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

Commit 887f60c

Browse files
author
damart
committed
Minor fix for when reading CMA checkpoints in py2
1 parent 307514e commit 887f60c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bluepyopt/deapext/optimisationsCMA.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def run(
256256
if continue_cp:
257257

258258
# A file name has been given, then load the data from the file
259-
cp = pickle.load(open(cp_filename, "br"))
259+
cp = pickle.load(open(cp_filename, "rb"))
260260
gen = cp["generation"]
261261
self.hof = cp["halloffame"]
262262
logbook = cp["logbook"]

0 commit comments

Comments
 (0)