Skip to content

Commit

Permalink
[#158185408]: Don't force-keep H&S if they're pruned in both dims
Browse files Browse the repository at this point in the history
  • Loading branch information
slobodan-ilic committed Jun 8, 2018
1 parent 98ba5e8 commit 48abe4d
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/cr/cube/crunch_cube.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,13 +210,6 @@ def _prune_3d_body(self, res, transforms):
)
slice_mask = np.logical_or(rows_pruned, cols_pruned)

# 0 stands for row dim (it's increased inside the method
inserted_rows_indices = self._inserted_dim_inds(transforms, 0)
if inserted_rows_indices.any():
hs_pruned = slice_mask[inserted_rows_indices, :].all(axis=1)
# make sure we never prune H&S
slice_mask[inserted_rows_indices[hs_pruned], :] = False

# In case of MRs we need to "inflate" mask
if self.mr_dim_ind == (1, 2):
slice_mask = slice_mask[:, np.newaxis, :, np.newaxis]
Expand Down

0 comments on commit 48abe4d

Please sign in to comment.