Skip to content

Commit

Permalink
isValid -> is_valid
Browse files Browse the repository at this point in the history
  • Loading branch information
tnipen committed Nov 21, 2020
1 parent e05af2a commit e3914d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/api/neighbourhood.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ vec2 gridpp::neighbourhood_quantile_fast(const vec2& input, const vec2& quantile

for(int y = 0; y < quantile.size(); y++) {
for(int x = 0; x < quantile[y].size(); x++) {
if(gridpp::isValid(quantile[y][x])) {
if(gridpp::is_valid(quantile[y][x])) {
if(quantile[y][x] < 0 || quantile[y][x] > 1)
throw std::invalid_argument("All quantiles must be >= 0 and <= 1");
}
Expand Down
2 changes: 1 addition & 1 deletion src/api/smart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def get_smart_neighbour(const Grid& grid, float lat, float lon, float altitude,
for(int jj = std::max(0, Jc-mRadius); jj <= std::min(iFrom.getNumX()-1, Jc+mRadius); jj++) {
float ielev = ielevs[ii][jj];
float diff = 1e10;
if(Util::isValid(ielev) && Util::isValid(oelev))
if(Util::is_valid(ielev) && Util::is_valid(oelev))
diff = abs(ielev - oelev);
elevDiff.push_back(std::pair<int, float>(index, diff));
Ilookup.push_back(ii);
Expand Down

0 comments on commit e3914d2

Please sign in to comment.