Skip to content

Commit

Permalink
Merge pull request #353 from pfafflabatuiuc/fixing_dim_reducer
Browse files Browse the repository at this point in the history
Fixing dim reducer
  • Loading branch information
wpfff committed Dec 3, 2022
2 parents eb5dedb + 32672ed commit ff79998
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions plottr/node/dim_reducer.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,10 +363,12 @@ def setElementSelectionInfo(self, dim: str, value: Optional[str] = None) -> None
roles = self.getRoles()
axidx = self._dataStructure.axes().index(dim)
naxvals = self._dataShapes[dim][axidx]
idx = roles[dim]['options']['index']
text = f"({idx + 1}/{naxvals})"
if value is not None:
text = value + ' ' + text
text = ''
if 'index' in roles[dim]['options']:
idx = roles[dim]['options']['index']
text = f"({idx + 1}/{naxvals})"
if value is not None:
text = value + ' ' + text
self.setDimInfo(dim, text)


Expand Down

0 comments on commit ff79998

Please sign in to comment.