@@ -2127,11 +2127,9 @@ def _translate_axis_key(self, axis_key):
21272127 return self ._translate_axis_key_chunk (axis_key )
21282128
21292129 def __getitem__ (self , key , collapse_slices = False , translate_key = True ):
2130- data = self .data
2131- # FIXME: I have a huge problem with boolean axis labels + non points
21322130 raw_broadcasted_key , res_axes , transpose_indices = self .axes ._key_to_raw_and_axes (key , collapse_slices ,
21332131 translate_key )
2134- res_data = data [raw_broadcasted_key ]
2132+ res_data = self . data [raw_broadcasted_key ]
21352133 if res_axes :
21362134 res = Array (res_data , res_axes )
21372135 # if some axes have been moved in front because of advanced indexing, we transpose them back to their
@@ -2145,7 +2143,6 @@ def __setitem__(self, key, value, collapse_slices=True, translate_key=True):
21452143 # total_axes = self.axes + key.axes + value.axes
21462144 # expanded = self.expand(total_axes)
21472145 # data = np.asarray(expanded.data)
2148- data = self .data
21492146 raw_broadcasted_key , target_axes , _ = self .axes ._key_to_raw_and_axes (key , collapse_slices , translate_key )
21502147 if isinstance (value , Array ):
21512148 # TODO: the check_compatible should be included in broadcast_with
@@ -2161,7 +2158,7 @@ def __setitem__(self, key, value, collapse_slices=True, translate_key=True):
21612158 text = 'axes are' if len (extra_axes ) > 1 else 'axis is'
21622159 raise ValueError ("Value {!s} {} not present in target subset {!s}. A value can only have the same axes "
21632160 "or fewer axes than the subset being targeted" .format (extra_axes , text , axes ))
2164- data [raw_broadcasted_key ] = value
2161+ self . data [raw_broadcasted_key ] = value
21652162
21662163 # concerning keys this can make sense in several cases:
21672164 # single bool Array key with extra axes.
0 commit comments