Skip to content

Commit

Permalink
Attempt to fix failing dashboard tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aashish24 committed Sep 24, 2015
1 parent 05ab6ea commit df7ef7b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions Packages/vcs/Lib/vcs2vtk.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def handleProjectionEdgeCases(projection, data):


def genGridOnPoints(data1, gm, deep=True, grid=None, geo=None,
skipReprojection=False, data2=None):
data2=None):
continents = False
projection = vcs.elements["projection"][gm.projection]
xm, xM, ym, yM = None, None, None, None
Expand Down Expand Up @@ -211,7 +211,7 @@ def genGridOnPoints(data1, gm, deep=True, grid=None, geo=None,
xm, xM, ym, yM, tmp, tmp2 = grid.GetPoints().GetBounds()
vg = grid
xm, xM, ym, yM = getRange(gm, xm, xM, ym, yM)
if geo is None and not skipReprojection:
if geo is None:
geo, geopts = project(pts, projection, [xm, xM, ym, yM])
pts = geopts
# Sets the vertices into the grid
Expand Down Expand Up @@ -607,7 +607,6 @@ def project(pts, projection, wc, geo=None):
geo.SetSourceProjection(ps)
geo.SetDestinationProjection(pd)
geopts = vtk.vtkPoints()
geopts.SetDataTypeToDouble()
geo.TransformPoints(pts, geopts)
return geo, geopts

Expand Down
3 changes: 1 addition & 2 deletions Packages/vcs/Lib/vcsvtk/vectorpipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ def plot(self, data1, data2, tmpl, grid, transform):
scale = (lat.max() - lat.min()) * (lon.max() - lon.min())

gridGenDict = vcs2vtk.genGridOnPoints(data1, self._gm, deep=False, grid=grid,
geo=transform, skipReprojection=False,
data2=data2)
geo=transform, data2=data2)

data1 = gridGenDict["data"]
data2 = gridGenDict["data2"]
Expand Down

0 comments on commit df7ef7b

Please sign in to comment.