Skip to content

Commit

Permalink
[#158497157]: Fix test failures after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
slobodan-ilic committed Jun 26, 2018
1 parent da16e28 commit 9da94fc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/cr/cube/cube_slice.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,10 @@ def _update_result(self, result):
def _call_cube_method(self, method, *args, **kwargs):
kwargs = self._update_args(kwargs)
result = getattr(self._cube, method)(*args, **kwargs)
if method in ('labels', 'inserted_hs_indices') and not self.ca_as_0th:
return result[-2:]
if method in ('labels', 'inserted_hs_indices'):
if not self.ca_as_0th:
result = result[-2:]
return result
return self._update_result(result)

@property
Expand Down

0 comments on commit 9da94fc

Please sign in to comment.