• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

dask / dask / 5825
53%

Build:
DEFAULT BRANCH: master
Ran 05 Apr 2017 09:49PM UTC
Jobs 1
Files 90
Run time 6s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
5825

push

travis-ci

web-flow
Add constructor plugins to dask.array (#2142)

* Add constructor plugins to dask.array

This adds a `__new__` constructor to the Array class that enables
user-defined plugins to override array construction.

Some comments/concerns:

1.  Using `__new__` is powerful but also dangerous.  Are there other
    alternatives?  This may break other code; for example, this
    inadvertently breaks pickling.
2.  Do we want to apply this to the Base class?  If so then how do we
    want to enable users to define class-specific plugins?  Add them to
    the class as class variables?
3.  Are there better names for `da.constructor_plugins`?

* merge __init__ into __new__

* Use dask.set_options for constructor plugins

* Add __getnewargs__ method

Classes implementing __new__ need to have this to support pickling.
We replace the `_args` method, which did the same thing.

* remove getstate and setstate methods

These are no longer necessar now that we have __getnewargs__

* add __reduce__ to dask.array

* remove getnewargs

* add plugin docs

12384 of 13386 relevant lines covered (92.51%)

0.93 hits per line

Jobs
ID Job ID Ran Files Coverage
1 5825.1 (PYTHON=2.7 NUMPY=1.10.4 PANDAS=0.19.0 COVERAGE='true' PARALLEL='false' TEST_IMPORTS='false' XTRATESTARGS=) 05 Apr 2017 09:49PM UTC 0
92.51
Travis Job 5825.1
Source Files on build 5825
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #5825
  • a4d961ba on github
  • Prev Build on master (#5824)
  • Next Build on master (#5827)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc