Skip to content

Add a dtype check for numpy arrays in assert_equal #158

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

Merged
merged 18 commits into from
Oct 9, 2022

Conversation

Illviljan
Copy link
Contributor

@Illviljan Illviljan commented Sep 29, 2022

Check taken from: da.utils.assert_eq(a, b, equal_nan=True)

@Illviljan Illviljan changed the title Add a dtype check for numpy arrays Add a dtype check for numpy arrays in assert_equal Sep 29, 2022
@dcherian
Copy link
Collaborator

Thanks. A large number of failures here will just be adding the right dtype to expected in a bunch of tests

@Illviljan
Copy link
Contributor Author

Feel free to push to this PR if you see immediately what needs to be done. :)

@dcherian
Copy link
Collaborator

dcherian commented Oct 8, 2022

not too bad!

@dcherian dcherian marked this pull request as ready for review October 8, 2022 03:26
@Illviljan
Copy link
Contributor Author

Illviljan commented Oct 8, 2022

Nice! I'll stop going down the typing rabbit hole here. There's some issues with expected_groups once you add it in other functions but we'll solve that another time.

@dcherian dcherian enabled auto-merge (squash) October 9, 2022 16:54
@dcherian dcherian merged commit 031979d into xarray-contrib:main Oct 9, 2022
dcherian added a commit that referenced this pull request Oct 9, 2022
* main:
  Add a dtype check for numpy arrays in assert_equal (#158)
dcherian added a commit that referenced this pull request Oct 17, 2022
* main: (29 commits)
  Major fix to subset_to_blocks (#173)
  Performance improvements for cohorts detection (#172)
  Remove split_out (#170)
  Deprecate resample_reduce (#169)
  More efficient cohorts. (#165)
  Allow specifying output dtype (#131)
  Add a dtype check for numpy arrays in assert_equal (#158)
  Update ci-additional.yaml (#167)
  Refactor before redoing cohorts (#164)
  Fix mypy errors in core.py (#150)
  Add link to numpy_groupies (#160)
  Bump codecov/codecov-action from 3.1.0 to 3.1.1 (#159)
  Use math.prod instead of np.prod (#157)
  Remove None output from _get_expected_groups (#152)
  Fix mypy errors in xarray.py, xrutils.py, cache.py (#144)
  Raise error if multiple by's are used with Ellipsis (#149)
  pre-commit autoupdate (#148)
  Add mypy ignores (#146)
  Get pre commit bot to update (#145)
  Remove duplicate examples headers (#147)
  ...
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