Skip to content

Commit

Permalink
PEP8: Formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Paulik committed Sep 30, 2015
1 parent 085c885 commit d97cea5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pygeogrids/grids.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ def calc_lut(self, other, max_dist=np.Inf, into_subset=False):
gpi_lut.fill(-1)
gpi_lut[self.subset] = active_lut
elif not self.gpidirect:
gpi_lut = np.empty(np.max(self.activegpis)+1, dtype=np.int64)
gpi_lut = np.empty(np.max(self.activegpis) + 1, dtype=np.int64)
gpi_lut.fill(-1)
gpi_lut[self.activegpis] = active_lut
else:
Expand Down
11 changes: 5 additions & 6 deletions tests/test_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,12 +263,11 @@ def test_gpi2rowcol_custom_gpis(self):
"""
Test if gpi to row column lookup works correctly.
"""
self.custom_gpi_grid = \
grids.BasicGrid(self.lon.flatten(),
self.lat.flatten(),
shape=(len(self.londim),
len(self.latdim)),
gpis=np.arange(len(self.lat.flatten()))[::-1])
self.custom_gpi_grid = grids.BasicGrid(self.lon.flatten(),
self.lat.flatten(),
shape=(len(self.londim),
len(self.latdim)),
gpis=np.arange(len(self.lat.flatten()))[::-1])
gpi = [200, 255]
row_should = [70, 70]
column_should = [87, 32]
Expand Down

0 comments on commit d97cea5

Please sign in to comment.