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

Commit

Permalink
type.to, not type
Browse files Browse the repository at this point in the history
  • Loading branch information
jpivarski committed May 26, 2019
1 parent 519468c commit dbccd29
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions awkward/array/chunked.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,13 +291,6 @@ def __getitem__(self, where):
self._valid()

if self._util_isstringslice(where):
if isinstance(where, awkward.util.string):
if not self.type.hascolumn(where):
raise ValueError("no column named {0}".format(repr(where)))
else:
for x in where:
if not self.type.hascolumn(x):
raise ValueError("no column named {0}".format(repr(x)))
chunks = []
counts = []
for chunk in self._chunks:
Expand Down Expand Up @@ -482,7 +475,7 @@ def __setitem__(self, where, what):
if isinstance(what, ChunkedArray) and self._aligned(what):
for i, (mine, theirs) in enumerate(zip(self._chunks, what._chunks)):
mine[where] = theirs
self._types[i] = mine.type
self._types[i] = mine.type.to
else:
raise ValueError("only ChunkedArrays with the same chunk sizes can be assigned to columns of a ChunkedArray")

Expand Down

0 comments on commit dbccd29

Please sign in to comment.