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

hgrecco / pint / 1336
91%

Build:
DEFAULT BRANCH: master
Ran 11 Dec 2019 12:33PM UTC
Jobs 13
Files 204
Run time 5min
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
1336

push

travis-ci

web-flow
Merge #905

905: NEP-18 Compatibility r=hgrecco a=jthielen

Building off of the implementation of `__array_function__` in #764, this PR adds compatibility with NEP-18 in Pint (mostly in the sense of Quantity having `__array_function__` and being wrappable as a duck array; for Quantity wrapping other duck arrays, see #845). Many tests are added of NumPy functions being used with Pint Quantities by way of `__array_function__`.

Accompanying changes that were needed as a part of this implementation include:
- a complete refactor of `__array_ufunc__` and ufunc attribute fallbacks to work in parallel with `__array_function__`
- promoting `_eq` in `quantity` to `eq` in `compat`
- preliminary handling of array-like compatibility by defining upcast types and attempting to wrap and defer to all others (a follow-up PR, or set of PRs, will be needed to completely address #845 / #878)

Closes #126 
Closes #396 
Closes #424
Closes #547 
Closes #553
Closes #617
Closes #619
Closes #682 
Closes #700
Closes #764
Closes #790
Closes #821

Co-authored-by: Jon Thielen <github@jont.cc>

36852 of 42768 relevant lines covered (86.17%)

11.08 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1336.1 (PKGS="python=3.6") 11 Dec 2019 12:33PM UTC 0
76.33
Travis Job 1336.1
2 1336.2 (PKGS="python=3.7") 11 Dec 2019 12:33PM UTC 0
76.24
Travis Job 1336.2
3 1336.3 (PKGS="python=3.8") 11 Dec 2019 12:33PM UTC 0
76.71
Travis Job 1336.3
4 1336.4 (PKGS="python=3.6 uncertainties=3.0") 11 Dec 2019 12:34PM UTC 0
89.26
Travis Job 1336.4
5 1336.5 (PKGS="python=3.7 uncertainties=3.0") 11 Dec 2019 12:34PM UTC 0
89.26
Travis Job 1336.5
6 1336.6 (PKGS="python=3.6 numpy=1.14") 11 Dec 2019 12:36PM UTC 0
85.39
Travis Job 1336.6
7 1336.7 (PKGS="python=3.7 numpy=1.14") 11 Dec 2019 12:35PM UTC 0
85.39
Travis Job 1336.7
8 1336.8 (PKGS="python=3.8 numpy=1.17") 11 Dec 2019 12:36PM UTC 0
87.71
Travis Job 1336.8
9 1336.9 (PKGS="python=3.6 numpy=1.14 uncertainties=3.0") 11 Dec 2019 12:36PM UTC 0
87.15
Travis Job 1336.9
10 1336.10 (PKGS="python=3.7 numpy=1.14 uncertainties=3.0") 11 Dec 2019 12:36PM UTC 0
87.15
Travis Job 1336.10
11 1336.11 (PKGS="python=3.6 numpy uncertainties") 11 Dec 2019 12:38PM UTC 0
89.26
Travis Job 1336.11
12 1336.12 (PKGS="python=3.7 numpy uncertainties") 11 Dec 2019 12:38PM UTC 0
89.26
Travis Job 1336.12
13 1336.13 (PKGS="python=3.8 numpy uncertainties") 11 Dec 2019 12:38PM UTC 0
89.44
Travis Job 1336.13
Source Files on build 1336
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1336
  • 43fbae24 on github
  • Prev Build on master (#1331)
  • Next Build on master (#1340)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc