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

Issue 4: Fixed bug where VariableInfo equality fails when _FillValue is np.nan #5

Merged
merged 3 commits into from
Nov 18, 2021

Conversation

skorper
Copy link
Contributor

@skorper skorper commented Nov 18, 2021

Github Issue: #4

Description

The granule variable equality check is failing for the granules tested in #4. This leads to

2021-11-17T16:52:52.435Z [debug]: FROM WORKER LOG: ERROR:root:Variable schemas are inconsistent between granules

Overview of work done

Because of the following:

>>> np.nan == np.nan
False

we are seeing errors if the _FillValue is np.nan, because the equality check fails. Added an extra check if the equality check fails

>>> np.array_equal(np.nan, np.nan, equal_nan=True)
True

Overview of verification done

Overview of integration done

N/A

PR checklist:

  • Linted
  • Updated unit tests
  • Updated changelog
  • Integration testing

See Pull Request Review Checklist for pointers on reviewing this pull request

@skorper skorper requested review from sliu008, frankinspace and a team November 18, 2021 00:18
@skorper skorper merged commit 05e2eb8 into develop Nov 18, 2021
@skorper skorper deleted the issue-4 branch November 18, 2021 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants