diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2018-07-24 10:28:20 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2018-07-24 10:28:20 +0200 |
| commit | 05c3559e2dfd015b2e7f2deca7aa9f1692c84ecb (patch) | |
| tree | 810f9988713e110c516bb34445fb03f29473312a | |
| parent | 3d2103cc95bb1b01dfcb4bbe524e6715b3d4686f (diff) | |
| download | allocbench-05c3559e2dfd015b2e7f2deca7aa9f1692c84ecb.tar.gz allocbench-05c3559e2dfd015b2e7f2deca7aa9f1692c84ecb.zip | |
fix save and load
| -rw-r--r-- | benchmark.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/benchmark.py b/benchmark.py index 4b565e3..c68dce7 100644 --- a/benchmark.py +++ b/benchmark.py @@ -2,16 +2,16 @@ import pickle class Benchmark (object): def save(self, path=None, verbose=False): - f = path if path else self.file_name + ".save" + f = path if path else self.name + ".save" if verbose: - print("Saving results to:", self.file_name + ".save") + print("Saving results to:", self.name + ".save") with open(f, "wb") as f: pickle.dump(self.results, f) def load(self, path=None, verbose=False): - f = path if path else self.file_name + ".save" + f = path if path else self.name + ".save" if verbose: - print("Loading results from:", self.file_name + ".save") + print("Loading results from:", self.name + ".save") with open(f, "rb") as f: self.results = pickle.load(f) |
