Skip to content
This repository was archived by the owner on Jan 31, 2025. It is now read-only.

Commit 1eeea86

Browse files
committed
fixup
1 parent 552d184 commit 1eeea86

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

pyop3/itree/tree.py

+1-10
Original file line numberDiff line numberDiff line change
@@ -1301,7 +1301,6 @@ def _(slice_: Slice, indices, *, target_path_acc, prev_axes, **kwargs):
13011301
size = target_cpt.count
13021302
else:
13031303
size = target_cpt.count[indices]
1304-
rank_equal = True
13051304
else:
13061305
if subslice.stop is None:
13071306
stop = target_cpt.count
@@ -1314,31 +1313,23 @@ def _(slice_: Slice, indices, *, target_path_acc, prev_axes, **kwargs):
13141313

13151314
owned_count = min(target_cpt.owned_count, stop)
13161315
count = stop
1317-
rank_equal = False
13181316

13191317
if owned_count == count:
13201318
size = count
13211319
else:
13221320
size = (owned_count, count)
13231321
else:
13241322
size = math.ceil((stop - subslice.start) / subslice.step)
1325-
rank_equal = True
13261323

13271324
else:
13281325
assert isinstance(subslice, Subset)
13291326
size = subslice.array.axes.leaf_component.count
13301327

1331-
# kind of misleading, the values may differ I think
1332-
rank_equal = True
1333-
1334-
if target_cpt.distributed:
1335-
raise NotImplementedError
1336-
13371328
if is_full_slice and subslice.label_was_none:
13381329
mylabel = subslice.component
13391330
else:
13401331
mylabel = subslice.label
1341-
cpt = AxisComponent(size, label=mylabel, unit=target_cpt.unit, rank_equal=rank_equal)
1332+
cpt = AxisComponent(size, label=mylabel, unit=target_cpt.unit, rank_equal=target_cpt.rank_equal)
13421333
components.append(cpt)
13431334

13441335
target_path_per_subslice.append(pmap({slice_.axis: subslice.component}))

0 commit comments

Comments
 (0)