Skip to content
This repository has been archived by the owner on Jun 21, 2022. It is now read-only.

Commit

Permalink
Table.Row.__getattr__ was returning whole arrays, rather than just th…
Browse files Browse the repository at this point in the history
…e index in question
  • Loading branch information
jpivarski committed Sep 28, 2018
1 parent 47fadfa commit 9232d92
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions awkward/array/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down
2 changes: 1 addition & 1 deletion awkward/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

import re

__version__ = "0.0.9"
__version__ = "0.0.10"
version = __version__
version_info = tuple(re.split(r"[-\.]", __version__))

Expand Down

0 comments on commit 9232d92

Please sign in to comment.