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

hgrecco / pint / 1504 / 5
91%
master: 91%

Build:
DEFAULT BRANCH: master
Ran 30 Dec 2019 04:47PM UTC
Files 43
Run time 3s
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

30 Dec 2019 04:38PM UTC coverage: 91.663% (-0.3%) from 91.94%
PKGS="python=3.6 uncertainties=3.0"

push

travis-ci

web-flow
Merge #963

963: Add tests and documentation with improvement of downcast type compatibility (part of #845) r=hgrecco a=jthielen

As a part of #845, this PR adds tests for downcast type compatibility with Sparse's `COO` and NumPy's `MaskedArray`, along with more careful handling of downcast types throughout the library. Also included is new documentation on array type compatibility, including the type casting hierarchy digraph by @shoyer and @crusaderky.

While this PR doesn't fully bring Pint's downcast type compatibility to a completed state, I think this gets it "good enough" for the upcoming release, and the remaining issues are fairly well defined:

- MaskedArray non-commutativity (https://github.com/hgrecco/pint/issues/633 / https://github.com/numpy/numpy/issues/15200)
- Dask compatibility (https://github.com/hgrecco/pint/issues/883)
- Addition of CuPy tests (no issue on issue tracker yet)

Because of that, I think this can close #845, but if @hgrecco you want that kept open until the above items are resolved, let me know.

- [x] Closes #37; Closes #845
- [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>

7872 of 8588 relevant lines covered (91.66%)

0.92 hits per line

Source Files on job 1504.5 (PKGS="python=3.6 uncertainties=3.0")
  • Tree
  • List 0
  • Changed 5
  • Source Changed 5
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1385
  • Travis Job 1504.5
  • 0d09f54a on github
  • Prev Job for PKGS="python=3.6 uncertainties=3.0" on master (#1501.5)
  • Next Job for PKGS="python=3.6 uncertainties=3.0" on master (#1508.5)
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