Given an index or a string, returns an array information. Raises IndexError if the index is out of bounds.
(self, idx)
| 1979 | return self.GetFieldData().GetNumberOfArrays() |
| 1980 | |
| 1981 | def GetArray(self, idx): |
| 1982 | """Given an index or a string, returns an array information. |
| 1983 | Raises IndexError if the index is out of bounds.""" |
| 1984 | self.Proxy.UpdatePipeline() |
| 1985 | if not self.GetFieldData().GetArrayInformation(idx): |
| 1986 | return None |
| 1987 | if isinstance(idx, str): |
| 1988 | return ArrayInformation(self.Proxy, self, idx) |
| 1989 | elif idx >= len(self) or idx < 0: |
| 1990 | raise IndexError |
| 1991 | return ArrayInformation(self.Proxy, self, self.GetFieldData().GetArrayInformation(idx).GetName()) |
| 1992 | |
| 1993 | def __len__(self): |
| 1994 | """Returns the number of arrays.""" |
no test coverage detected