Skip to content
Permalink
Browse files

Merge pull request #12988 from aeslaughter/chigger-precision-12457

Fix logic for precision option
  • Loading branch information...
permcody committed Mar 5, 2019
1 parent 54cc112 commit e744a34d2559bfbcaa61f2834f519365ddf67b3d
Showing with 3 additions and 2 deletions.
  1. +2 −1 python/chigger/RenderWindow.py
  2. +1 −1 python/chigger/utils/AxisOptions.py
@@ -36,7 +36,8 @@ def getOptions():
opt.add('test', False, "When True the interaction is disabled and the window closes "
"immediately after rendering.")
opt.add('motion_factor', "Control the interaction motion rate. "
"(calls vtkInteractorStyle::SetMotionFactor)")
"(calls vtkInteractorStyle::SetMotionFactor)",
vtype=float)
opt.add('offscreen', False, "Enable offscreen rendering.")
opt.add('chigger', False, "Places a chigger logo in the lower left corner.")
opt.add('smoothing', False, "Enable VTK render window smoothing options.")
@@ -127,7 +127,7 @@ def set_options(vtkaxis, opt):
vtkaxis.SetNotation(vtk_notation)

if opt.isOptionValid('precision'):
if vtkaxis.GetNotation() in VTK_NOTATION_ENUM[1:2]:
if vtkaxis.GetNotation() in VTK_NOTATION_ENUM[1:3]:
vtkaxis.SetPrecision(opt['precision'])
else:
mooseutils.mooseWarning("When using 'precision' option, 'notation' option has to be "

0 comments on commit e744a34

Please sign in to comment.
You can’t perform that action at this time.