Skip to content

Commit

Permalink
Merge pull request #29 from TUW-GEO/grids_calc_lut
Browse files Browse the repository at this point in the history
Grids calc lut
  • Loading branch information
cpaulik committed Sep 30, 2015
2 parents 668a064 + 7d7226b commit 6576076
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
language: python
sudo: false
notifications:
email: false
python:
# We don't actually use the Travis Python, but this keeps it organized.
- "2.7"
- "3.3"
- "3.4"
- "3.5"
install:
- sudo apt-get update
# You may want to periodically update this, although the conda update
# conda line below will keep everything up-to-date. We do this
# conditionally because it saves us some downloading if the version is
Expand Down
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# v0.1.4

- fix bug in lookuptable generation when gpis have custom ordering

# v0.1.3 #

- change meaning and rename grid dimensions to lon2d, lat2d. They do now
Expand Down
4 changes: 4 additions & 0 deletions pygeogrids/grids.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,10 @@ def calc_lut(self, other, max_dist=np.Inf, into_subset=False):
gpi_lut = np.empty_like(self.gpis)
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.fill(-1)
gpi_lut[self.activegpis] = active_lut
else:
gpi_lut = active_lut

Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ def run_tests(self):
params = {"args": self.test_args}
if self.cov:
params["args"] += self.cov
params["plugins"] = ["cov"]
if self.junitxml:
params["args"] += self.junitxml
errno = pytest.main(**params)
Expand Down

0 comments on commit 6576076

Please sign in to comment.