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

hgrecco / pint / 1508
91%

Build:
DEFAULT BRANCH: master
Ran 30 Dec 2019 11:46PM UTC
Jobs 7
Files 258
Run time 4min
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
1508

push

travis-ci

web-flow
Merge #965

965: Raise ValueError on ambiguous boolean conversion and add pending NumPy functions/ufuncs from issue tracker r=hgrecco a=jthielen

There were a few follow-up issues from #905 that were missing fairly simple implementations, so this PR takes care of them in preparation for the upcoming release.

Part of this was resolving #866 by raising a `ValueError` due to ambiguity when casting Quantities with offset units to boolean, which is technically a breaking change (although I would argue that the previous behavior was incorrect as discussed in #866).

Also, @keewis, this implements `np.any` and `np.all`, which are two of the functions you had mentioned were needed by xarray. I think now the only one still missing is `np.prod` (https://github.com/hgrecco/pint/issues/867) which will likely have to wait since there hasn't been a good solution yet.

- [x] Closes #419; Closes #470; Closes #807; Closes #866
- [x] Executed ``black -t py36 . && isort -rc . && flake8`` with no errors
- [x] The change is fully covered by automated unit tests
- [x] Documented in docs/ as appropriate
- [x] Added an entry to the CHANGES file


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

46501 of 52034 relevant lines covered (89.37%)

6.11 hits per line

Jobs
ID Job ID Ran Files Coverage
4 1508.4 (PKGS="python=3.8") 30 Dec 2019 11:46PM UTC 0
74.33
Travis Job 1508.4
5 1508.5 (PKGS="python=3.6 uncertainties=3.0") 30 Dec 2019 11:46PM UTC 0
91.7
Travis Job 1508.5
6 1508.6 (PKGS="python=3.7 uncertainties=3.0") 30 Dec 2019 11:48PM UTC 0
91.7
Travis Job 1508.6
9 1508.9 (PKGS="python=3.8 numpy=1.17 matplotlib") 30 Dec 2019 11:49PM UTC 0
89.95
Travis Job 1508.9
10 1508.10 (PKGS="python=3.6 numpy=1.14 uncertainties=3.0") 30 Dec 2019 11:49PM UTC 0
88.22
Travis Job 1508.10
11 1508.11 (PKGS="python=3.7 numpy=1.14 uncertainties=3.0") 30 Dec 2019 11:50PM UTC 0
88.22
Travis Job 1508.11
14 1508.14 (PKGS="python=3.8 numpy uncertainties") 30 Dec 2019 11:51PM UTC 0
91.84
Travis Job 1508.14
Source Files on build 1508
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1508
  • c99573d1 on github
  • Prev Build on master (#1504)
  • Next Build on master (#1511)
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