From 9232d92c2fc121c814312d2e6a4608d76caac60e Mon Sep 17 00:00:00 2001 From: Jim Pivarski Date: Fri, 28 Sep 2018 09:28:54 -0500 Subject: [PATCH] Table.Row.__getattr__ was returning whole arrays, rather than just the index in question --- awkward/array/table.py | 4 ++-- awkward/version.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/awkward/array/table.py b/awkward/array/table.py index 984da37e..4a20914e 100644 --- a/awkward/array/table.py +++ b/awkward/array/table.py @@ -61,11 +61,11 @@ def __getattr__(self, name): content = self._table._content.get(name, None) if content is not None: - return content + return content[self._index] content = self._table._content.get("_" + name, None) if content is not None: - return content + return content[self._index] raise AttributeError("neither {0} nor _{1} are columns in this {2}".format(name, name, self._table.rowname)) diff --git a/awkward/version.py b/awkward/version.py index 6979236b..77a577c9 100644 --- a/awkward/version.py +++ b/awkward/version.py @@ -30,7 +30,7 @@ import re -__version__ = "0.0.9" +__version__ = "0.0.10" version = __version__ version_info = tuple(re.split(r"[-\.]", __version__))