dask-image
dask-image copied to clipboard
MAINTENANCE: code style improvements #101
MAINTENANCE: code style improvements suggested by @jni #101 This is a sprint contribution in ScipyJapan2020 (#163) .
- [x] fully specified imports,
dask.arrayinstead ofda,numpyinstead ofnp. - [ ] Code definitions in
__init__.pyis unconventional.
@GenevieveBuckley @jni I am moving __init__.py functions to _util.py . Is it a right place to move? or should I make a new *.py file?
This draft PR has been open too long and now has too many conflicts with the main branch, so I think we'll close it.
Scanning through this, it seems "code style improvements" here means three things. We could do these later in another PR (from a more up-to-date version of main branch):
- Replace
numpywith the abbreviationnp(i.e. useimport numpy as npeverywhere) - Replace
dask.arraywith the abreviationda(i.e. useimport dask.array as daeverywhere) - Move functions out of the
__init__.pyfiles, keeping those mostly empty except for imports and the__all__dunder, etc.
Thank you for joining us at the hackathon @tkoyama010! It was really great to meet you then, and we did get a lot of stuff done overall 😄