Create table node at the specified path. Parameters ---------- node_path : str Path to node where data is stored (e.g. '/path/to/my_dict') description : dict or numpy dtype object The description of the columns in the table. This is either a d
(self, node_path, description, **kwargs)
| 253 | return self[node_path] |
| 254 | |
| 255 | def create_table(self, node_path, description, **kwargs): |
| 256 | """Create table node at the specified path. |
| 257 | |
| 258 | Parameters |
| 259 | ---------- |
| 260 | node_path : str |
| 261 | Path to node where data is stored (e.g. '/path/to/my_dict') |
| 262 | description : dict or numpy dtype object |
| 263 | The description of the columns in the table. This is either a dict |
| 264 | of column name -> dtype items or a numpy record array dtype. For |
| 265 | more information, see the documentation for Table in pytables. |
| 266 | """ |
| 267 | self._check_node(node_path) |
| 268 | self._assert_valid_path(node_path) |
| 269 | H5TableNode.add_to_h5file(self, node_path, description, **kwargs) |
| 270 | return self[node_path] |
| 271 | |
| 272 | def _check_node(self, node_path): |
| 273 | """Check if node exists and create parent groups if necessary. |