Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
bje- committed Jul 19, 2023
2 parents eb8cf81 + 1e5d1b9 commit f767acd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/tutorials/advanced/checkpoint.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ argument containing the path of the checkpoint file to restore. ::
def main(checkpoint=None):
if checkpoint:
# A file name has been given, then load the data from the file
with open(checkpoint, "r") as cp_file:
with open(checkpoint, "rb") as cp_file:
cp = pickle.load(cp_file)
population = cp["population"]
start_gen = cp["generation"]
Expand Down

0 comments on commit f767acd

Please sign in to comment.