Skip to content

Commit

Permalink
Merge pull request #416 from sjjamsa/415-phi-dimension-3-letters
Browse files Browse the repository at this point in the history
[BUG] Try using the whole string if getting PlotGrid fails using only the first letter. (issue #415)
  • Loading branch information
Andrew Johnson authored Aug 22, 2020
2 parents 32458a3 + 87d5f58 commit ee88bf4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions serpentTools/detectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,11 @@ def _getSlices(self, fixed):
return slices

def _getPlotGrid(self, qty):
# Try with the first letter only
grids = self.grids.get(qty[0].upper())
if grids is None:
# The phi-grid has three letters!
grids = self.grids.get(qty.upper())
if grids is not None:
return hstack((grids[:, 0], grids[-1, 1]))
nItems = self.tallies.shape[self.indexes.index(qty)]
Expand Down

0 comments on commit ee88bf4

Please sign in to comment.