| 128 | return self.nrows * self.rowsize |
| 129 | |
| 130 | def __init__( |
| 131 | self, |
| 132 | parentnode: Group, |
| 133 | name: str, |
| 134 | obj: npt.ArrayLike | None = None, |
| 135 | title: str = "", |
| 136 | byteorder: str | None = None, |
| 137 | _log: bool = True, |
| 138 | _atom: Atom | EnumAtom | None = None, |
| 139 | track_times: bool = True, |
| 140 | ) -> None: |
| 141 | |
| 142 | self._v_version: str | None = None |
| 143 | """The object version of this array.""" |
| 144 | self._v_new = new = obj is not None |
| 145 | """Is this the first time the node has been created?""" |
| 146 | self._v_new_title = title |
| 147 | """New title for this node.""" |
| 148 | self._obj = obj |
| 149 | """The object to be stored in the array. It can be any of numpy, |
| 150 | list, tuple, string, integer of floating point types, provided |
| 151 | that they are regular (i.e. they are not like ``[[1, 2], 2]``). |
| 152 | |
| 153 | .. versionchanged:: 3.0 |
| 154 | Renamed form *_object* into *_obj*. |
| 155 | |
| 156 | """ |
| 157 | |
| 158 | self._v_convert = True |
| 159 | """Whether the ``Array`` object must be converted or not.""" |
| 160 | |
| 161 | # Miscellaneous iteration rubbish. |
| 162 | self._start: int | None = None |
| 163 | """Starting row for the current iteration.""" |
| 164 | self._stop: int | None = None |
| 165 | """Stopping row for the current iteration.""" |
| 166 | self._step: int | None = None |
| 167 | """Step size for the current iteration.""" |
| 168 | self._nrowsread: int | None = None |
| 169 | """Number of rows read up to the current state of iteration.""" |
| 170 | self._startb: int | None = None |
| 171 | """Starting row for current buffer.""" |
| 172 | self._stopb: int | None = None |
| 173 | """Stopping row for current buffer. """ |
| 174 | self._row: int | None = None |
| 175 | """Current row in iterators (sentinel).""" |
| 176 | self._init = False |
| 177 | """Whether we are in the middle of an iteration or not (sentinel).""" |
| 178 | self.listarr: npt.ArrayLike | None = None |
| 179 | """Current buffer in iterators.""" |
| 180 | |
| 181 | # Documented (*public*) attributes. |
| 182 | self.atom = _atom |
| 183 | """An Atom (see :ref:`AtomClassDescr`) instance representing the *type* |
| 184 | and *shape* of the atomic objects to be saved. |
| 185 | """ |
| 186 | self.shape: list[int] | None = None |
| 187 | """The shape of the stored array.""" |