Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
lscsoft
bilby
Commits
b4d5a770
Commit
b4d5a770
authored
Apr 12, 2018
by
moritz
Browse files
Moritz Huebner: Made writing the pickle file python3 compatible
parent
15a7b2d3
Pipeline
#15953
passed with stages
in 5 minutes and 15 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
peyote/sampler.py
View file @
b4d5a770
...
...
@@ -36,7 +36,7 @@ class Result(dict):
os
.
rename
(
file_name
,
file_name
+
'.old'
)
logging
.
info
(
"Saving result to {}"
.
format
(
file_name
))
with
open
(
file_name
,
'w+'
)
as
f
:
with
open
(
file_name
,
'w
b
+'
)
as
f
:
pickle
.
dump
(
self
,
f
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment