Create a new variable-length array. Parameters ---------- where : str or Group The parent group from which the new array will hang. It can be a path string (for example '/level1/leaf5'), or a Group instance (see :ref:`GroupClassDescr`).
(
self,
where: Group | str,
name: str,
atom: Atom | None = None,
title: str = "",
filters: Filters | None = None,
expectedrows: int | None = None,
chunkshape: int | tuple[int, ...] | None = None,
byteorder: str | None = None,
createparents: bool = False,
obj: np.ndarray | None = None,
track_times: bool = True,
)
| 1513 | return ptobj |
| 1514 | |
| 1515 | def create_vlarray( |
| 1516 | self, |
| 1517 | where: Group | str, |
| 1518 | name: str, |
| 1519 | atom: Atom | None = None, |
| 1520 | title: str = "", |
| 1521 | filters: Filters | None = None, |
| 1522 | expectedrows: int | None = None, |
| 1523 | chunkshape: int | tuple[int, ...] | None = None, |
| 1524 | byteorder: str | None = None, |
| 1525 | createparents: bool = False, |
| 1526 | obj: np.ndarray | None = None, |
| 1527 | track_times: bool = True, |
| 1528 | ) -> VLArray: |
| 1529 | """Create a new variable-length array. |
| 1530 | |
| 1531 | Parameters |
| 1532 | ---------- |
| 1533 | where : str or Group |
| 1534 | The parent group from which the new array will hang. It can |
| 1535 | be a path string (for example '/level1/leaf5'), or a Group |
| 1536 | instance (see :ref:`GroupClassDescr`). |
| 1537 | name : str |
| 1538 | The name of the new array |
| 1539 | atom : Atom |
| 1540 | An Atom (see :ref:`AtomClassDescr`) instance representing |
| 1541 | the *type* and *shape* of the atomic objects to be saved. |
| 1542 | |
| 1543 | .. versionchanged:: 3.0 |
| 1544 | The *atom* parameter can be None (default) if *obj* is |
| 1545 | provided. |
| 1546 | |
| 1547 | title : str, optional |
| 1548 | A description for this node (it sets the TITLE HDF5 attribute |
| 1549 | on disk). |
| 1550 | filters : Filters |
| 1551 | An instance of the Filters class (see :ref:`FiltersClassDescr`) |
| 1552 | that provides information about the desired I/O filters to |
| 1553 | be applied during the life of this object. |
| 1554 | expectedrows : int, optional |
| 1555 | A user estimate about the number of row elements that will |
| 1556 | be added to the growable dimension in the `VLArray` node. |
| 1557 | If not provided, the default value is ``EXPECTED_ROWS_VLARRAY`` |
| 1558 | (see ``tables/parameters.py``). If you plan to create either |
| 1559 | a much smaller or a much bigger `VLArray` try providing a guess; |
| 1560 | this will optimize the HDF5 B-Tree creation and management |
| 1561 | process time and the amount of memory used. |
| 1562 | |
| 1563 | .. versionadded:: 3.0 |
| 1564 | |
| 1565 | chunkshape : int or tuple of int, optional |
| 1566 | The shape of the data chunk to be read or written in a |
| 1567 | single HDF5 I/O operation. Filters are applied to those |
| 1568 | chunks of data. The dimensionality of chunkshape must be 1. |
| 1569 | If None, a sensible value is calculated (which is recommended). |
| 1570 | byteorder : str, optional |
| 1571 | The byteorder of the data *on disk*, specified as 'little' or |
| 1572 | 'big'. If this is not specified, the byteorder is that of the |