Skip to content

Add assert_eq to top-level modules - #3726

Merged
mrocklin merged 1 commit into
dask:masterfrom
mrocklin:assert-eq-namespace
Jul 11, 2018
Merged

mrocklin merged 1 commit into
dask:masterfrom
mrocklin:assert-eq-namespace

Conversation

@mrocklin

@mrocklin mrocklin commented Jul 5, 2018

Copy link
Copy Markdown
Member

This moves the assert_eq testing functions to top level so that they are
uniformly available as

  • dask.array.assert_eq
  • dask.bag.assert_eq
  • dask.dataframe.assert_eq

THis gets used enough in downstream libraries that it might be nice to
have in a consistent place

  • Tests added / passed
  • Passes flake8 dask

There are certainly reasons to avoid this though. If people feel strongly against this I'm happy to not do this.

This moves the assert_eq testing functions to top level so that they are
uniformly available as

-   dask.array.assert_eq
-   dask.bag.assert_eq
-   dask.dataframe.assert_eq

THis gets used enough in downstream libraries that it might be nice to
have in a consistent place
@mrocklin
mrocklin force-pushed the assert-eq-namespace branch from b9cda20 to c4445e8 Compare July 6, 2018 14:22
@mrocklin

mrocklin commented Jul 6, 2018

Copy link
Copy Markdown
Member Author

I expect that @jakirkham or @jcrist are the most likely to be critical of this

@mrocklin

Copy link
Copy Markdown
Member Author

Merging tomorrow if there are no comments

@mrocklin
mrocklin merged commit 94bfc31 into dask:master Jul 11, 2018
@mrocklin
mrocklin deleted the assert-eq-namespace branch July 11, 2018 12:31
@jakirkham

jakirkham commented Jul 11, 2018 •

Copy link
Copy Markdown
Member

Thanks for doing this. We do use Dask Array's assert_eq quite a bit. So this is very helpful.

No deep thoughts about the implementation ATM. Seems pretty straightforward.

Guess we can close out issue ( #2694 ). Not sure if there is anything else we should glean from the discussion there.

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