Skip to content

Commit

Permalink
fix: more removals
Browse files Browse the repository at this point in the history
  • Loading branch information
agoose77 committed Nov 8, 2023
1 parent 5f1df9c commit e7cccc9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 15 deletions.
6 changes: 3 additions & 3 deletions src/awkward/_connect/numba/arrayview.py
Original file line number Diff line number Diff line change
Expand Up @@ -628,11 +628,11 @@ def __init__(self, arrayview, at):
self.at = at

def torecord(self):
arraylayout = self.arrayview.toarray().layout
array = self.arrayview.toarray()
return wrap_layout(
ak.record.Record(arraylayout, self.at),
ak.record.Record(array.layout, self.at),
behavior=self.arrayview.behavior,
attrs=self.arrayview.attrs,
attrs=array.attrs,
)


Expand Down
11 changes: 0 additions & 11 deletions src/awkward/_connect/numba/layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,6 @@ def lower_getitem_range(
proxyout.stop = builder.add(viewproxy.start, builder.load(regular_stop))
proxyout.arrayptrs = viewproxy.arrayptrs
proxyout.pylookup = viewproxy.pylookup
proxyout.pyattrs = viewproxy.pyattrs
return proxyout._getvalue()

def lower_getitem_field(self, context, builder, viewtype, viewval, key):
Expand Down Expand Up @@ -522,7 +521,6 @@ def lower_getitem_at(
proxyout.stop = stop
proxyout.arrayptrs = viewproxy.arrayptrs
proxyout.pylookup = viewproxy.pylookup
proxyout.pyattrs = viewproxy.pyattrs
return proxyout._getvalue()

@property
Expand Down Expand Up @@ -614,7 +612,6 @@ def lower_getitem_at(
)
proxyout.arrayptrs = viewproxy.arrayptrs
proxyout.pylookup = viewproxy.pylookup
proxyout.pyattrs = viewproxy.pyattrs
return proxyout._getvalue()

@property
Expand Down Expand Up @@ -697,7 +694,6 @@ def lower_getitem_at(
)
proxynext.arrayptrs = viewproxy.arrayptrs
proxynext.pylookup = viewproxy.pylookup
proxynext.pyattrs = viewproxy.pyattrs

return self.contenttype.lower_getitem_at_check(
context,
Expand Down Expand Up @@ -804,7 +800,6 @@ def lower_getitem_at(
)
proxynext.arrayptrs = viewproxy.arrayptrs
proxynext.pylookup = viewproxy.pylookup
proxynext.pyattrs = viewproxy.pyattrs

outdata = self.contenttype.lower_getitem_at_check(
context,
Expand Down Expand Up @@ -913,7 +908,6 @@ def lower_getitem_at(
proxynext.stop = viewproxy.stop
proxynext.arrayptrs = viewproxy.arrayptrs
proxynext.pylookup = viewproxy.pylookup
proxynext.pyattrs = viewproxy.pyattrs

outdata = self.contenttype.lower_getitem_at_check(
context,
Expand Down Expand Up @@ -1047,7 +1041,6 @@ def lower_getitem_at(
proxynext.stop = viewproxy.stop
proxynext.arrayptrs = viewproxy.arrayptrs
proxynext.pylookup = viewproxy.pylookup
proxynext.pyattrs = viewproxy.pyattrs

outdata = self.contenttype.lower_getitem_at_check(
context,
Expand Down Expand Up @@ -1141,7 +1134,6 @@ def lower_getitem_at(
proxynext.stop = viewproxy.stop
proxynext.arrayptrs = viewproxy.arrayptrs
proxynext.pylookup = viewproxy.pylookup
proxynext.pyattrs = viewproxy.pyattrs

outdata = self.contenttype.lower_getitem_at_check(
context,
Expand Down Expand Up @@ -1369,7 +1361,6 @@ def lower_getitem_at(
)
proxynext.arrayptrs = viewproxy.arrayptrs
proxynext.pylookup = viewproxy.pylookup
proxynext.pyattrs = viewproxy.pyattrs

return contenttype.lower_getitem_at_check(
context,
Expand Down Expand Up @@ -1399,7 +1390,6 @@ def lower_getitem_field(self, context, builder, viewtype, viewval, key):
proxynext.stop = viewproxy.stop
proxynext.arrayptrs = viewproxy.arrayptrs
proxynext.pylookup = viewproxy.pylookup
proxynext.pyattrs = viewproxy.pyattrs

return proxynext._getvalue()

Expand Down Expand Up @@ -1428,7 +1418,6 @@ def lower_getitem_field_record(
)
proxynext.arrayptrs = arrayviewproxy.arrayptrs
proxynext.pylookup = arrayviewproxy.pylookup
proxynext.pyattrs = arrayviewproxy.pyattrs

nextviewtype = ak._connect.numba.arrayview.wrap(
contenttype, arrayviewtype, None
Expand Down
2 changes: 1 addition & 1 deletion tests/test_1240_v2_implementation_of_numba_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
def roundtrip(layout):
assert isinstance(layout, ak.contents.Content)

lookup = NumbaLookup(layout)
lookup = NumbaLookup(layout, None)
assert isinstance(lookup, ak._lookup.Lookup)

numbatype = ak_numba_arrayview.to_numbatype(layout.form)
Expand Down

0 comments on commit e7cccc9

Please sign in to comment.