Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix check if lons and lats should be masked before resampling #210

Merged
merged 1 commit into from Mar 7, 2018

Conversation

mraspaud
Copy link
Member

@mraspaud mraspaud commented Mar 7, 2018

Bugfix check if lons and lats should be masked before resampling, because it was buggy.

  • Tests passed
  • Passes git diff origin/develop **/*py | flake8 --diff

@coveralls
Copy link

coveralls commented Mar 7, 2018

Coverage Status

Coverage remained the same at 59.06% when pulling 1c8419d on bugfix-masking-before-resampling into 5a4013e on develop.

@@ -673,7 +673,7 @@ def mask_source_lonlats(source_def, mask):
# the data may have additional masked pixels
# let's compare them to see if we can use the same area
# assume lons and lats mask are the same
if mask and isinstance(source_geo_def, SwathDefinition):
if mask is not None and mask is not False and isinstance(source_geo_def, SwathDefinition):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't mask at this point either None or an array?

@mraspaud mraspaud merged commit 9a40c87 into develop Mar 7, 2018
@mraspaud mraspaud deleted the bugfix-masking-before-resampling branch March 7, 2018 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants