Load a .json file into a dictionary.
(self, f, mode='r')
| 71 | return f |
| 72 | |
| 73 | def jload(self, f, mode='r'): |
| 74 | """Load a .json file into a dictionary.""" |
| 75 | f = self._make_r_io_base(f, mode) |
| 76 | jdict = json.load(f) |
| 77 | f.close() |
| 78 | return jdict |
| 79 | |
| 80 | def __len__(self): |
| 81 | return len(self.samples) |
no test coverage detected