Skip to content

Commit

Permalink
Fix PEP8 convention issues with VTKPlots (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
sankhesh authored and doutriaux1 committed Oct 14, 2016
1 parent bd1f8c8 commit 55b2d8c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vcs/VTKPlots.py
Expand Up @@ -63,7 +63,7 @@ def __init__(self, canvas, renWin=None, debug=False, bg=None, geometry=None):
'vtk_backend_grid',
# vtkGeoTransform used for geographic transformation
'vtk_backend_geo',
]
]
self.numberOfPlotCalls = 0
self.renderWindowSize = None
self.clickRenderer = None
Expand Down Expand Up @@ -188,9 +188,9 @@ def leftButtonPressEvent(self, obj, event):
worldPicker.Pick(xy[0], xy[1], 0, surfaceRenderer)
worldPosition = list(worldPicker.GetPickPosition())
if (xScale > yScale):
worldPosition[0] /= (xScale/yScale)
worldPosition[0] /= (xScale / yScale)
else:
worldPosition[1] /= (yScale/xScale)
worldPosition[1] /= (yScale / xScale)
lonLat = worldPosition
if (attributes is None):
# if point dataset, return the value for the closest point
Expand Down

0 comments on commit 55b2d8c

Please sign in to comment.