Skip to content

Commit a9f4df0

Browse files
committed
PERF: faster AxisRef -> Axis lookup by using their name directly
1 parent 8c5ea49 commit a9f4df0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

larray/core/axis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3641,7 +3641,7 @@ def evaluate(self, context):
36413641
context : AxisCollection
36423642
Use axes from this collection
36433643
"""
3644-
return context[self]
3644+
return context[self.name]
36453645

36463646
# needed because ExprNode.__hash__ (which is object.__hash__) takes precedence over Axis.__hash__
36473647
def __hash__(self):

0 commit comments

Comments
 (0)