Commit 43725ae5 authored by Sean Leavey's avatar Sean Leavey

Fix pickle bug (files not opened in binary mode)

parent 52676aa0
......@@ -676,12 +676,12 @@ class KatRun(object):
return self.__rundata
def saveKatRun(self, filename):
with open(filename,'w') as outfile:
with open(filename, 'wb') as outfile:
pickle.dump(self, outfile)
@staticmethod
def loadKatRun(filename):
with open(filename,'r') as infile:
with open(filename, 'rb') as infile:
return pickle.load(infile)
def get(self, value): return self[value]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment