(self, load_path)
| 39 | self.load(load_path) |
| 40 | |
| 41 | def load(self, load_path): |
| 42 | self.load_path = load_path |
| 43 | self.cache = np.load(load_path, allow_pickle=True) |
| 44 | self.data_len = self.cache['data_len'] |
| 45 | self.data_strategy = self.cache['data_strategy'] |
| 46 | assert self.data_len == len(self.cache) - 2 # data_len, data_strategy |
| 47 | self.cache = None |
| 48 | |
| 49 | @classmethod |
| 50 | def save(cls, save_path, data_list, data_strategy): |
no outgoing calls
no test coverage detected