(x, path, high_protocol = False)
| 74 | return res |
| 75 | |
| 76 | def pstore(x, path, high_protocol = False): |
| 77 | with open(path, 'wb') as f: |
| 78 | if high_protocol: |
| 79 | pickle.dump(x, f, protocol=pickle.HIGHEST_PROTOCOL) |
| 80 | else: |
| 81 | pickle.dump(x, f) |
| 82 | print('store object in path = {} ok'.format(path)) |
| 83 | |
| 84 | |
| 85 | def load_collection(collection_file): |
no test coverage detected