Skip to content

Add dask array compatibility layer - #131

Open
jni wants to merge 6 commits into
mainfrom
more-dasky
Open

jni wants to merge 6 commits into
mainfrom
more-dasky

Conversation

@jni

@jni jni commented Jun 28, 2021

Copy link
Copy Markdown
Owner

cc @GenevieveBuckley

Description

Type of change

  • Bug-fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

References

How has this been tested?

  • example: the test suite for my feature covers cases x, y, and z
  • example: all tests pass with my change

Final checklist:

  • My PR is the minimum possible work for the desired functionality
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • If I included new strings, I have used trans. to make them localizable.
    For more information see our translations guide.

@jni

jni commented Jun 28, 2021

Copy link
Copy Markdown
Owner Author

TODO: add tests to ensure results are unchanged between numpy with "unique_junctions=False" and dask.

@GenevieveBuckley

Copy link
Copy Markdown
Collaborator

TODO:

  • CI tests are failing because dask is not available in the test environment. We need dask and dask-image to be there.

@GenevieveBuckley

GenevieveBuckley commented Jul 7, 2021

Copy link
Copy Markdown
Collaborator

I've got some bad news about the tests @jni - there's a problem besides the test environment dependencies

@jni

jni commented Jul 8, 2021

Copy link
Copy Markdown
Owner Author

This is the line that install things when running tests:

pip install .[all,testing]

So dask needs to be added to:

skan/setup.cfg

Line 65 in 97a217d

testing =

@GenevieveBuckley

Copy link
Copy Markdown
Collaborator

Hmm, would have thought that was being handled by the all part of that. I've added dask (& dask-image) to the testing requirements in setup.cfg and we'll see how that goes.

Thanks for checking into it :)

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