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

hgrecco / pint / 800
92%
master: 91%

Build:
Build:
LAST BUILD BRANCH: fix-nonmult-doc
DEFAULT BRANCH: master
Ran 04 May 2018 02:36AM UTC
Jobs 12
Files 16
Run time 7min
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
800

push

travis-ci

bors[bot]
Merge #637

637: Add Unit.from_ and Unit.m_from r=hgrecco a=virtuald

Converts from a number or quantity to the unit (or the magnitude). This is most useful for when you aren't sure if the input is a Quantity.

While you could technically use `ureg.check()` for this, it's syntactically cleaner (and I suspect more performant) to use this:

```
ureg.inch.from_(1*foot)
ureg.inch.from_(1, strict=False)
```

Added tests and docstrings. I'm not quite sure where in the docs this should go, but I'm willing to add a blurb in there if you'll point me to the right place.

Co-authored-by: Dustin Spicuzza <dustin@virtualroadside.com>

2844 of 3215 relevant lines covered (88.46%)

10.21 hits per line

Jobs
ID Job ID Ran Files Coverage
1 800.1 (UNCERTAINTIES="N" PYTHON="3.3" NUMPY_VERSION=1.9.2) 04 May 2018 02:36AM UTC 0
86.19
Travis Job 800.1
2 800.2 (UNCERTAINTIES="N" PYTHON="3.4" NUMPY_VERSION=1.11.2) 04 May 2018 02:36AM UTC 0
86.25
Travis Job 800.2
3 800.3 (UNCERTAINTIES="N" PYTHON="3.5" NUMPY_VERSION=1.11.2) 04 May 2018 02:36AM UTC 0
86.25
Travis Job 800.3
4 800.4 (UNCERTAINTIES="Y" PYTHON="3.5" NUMPY_VERSION=1.11.2) 04 May 2018 02:37AM UTC 0
88.18
Travis Job 800.4
5 800.5 (UNCERTAINTIES="N" PYTHON="3.6" NUMPY_VERSION=1.11.2) 04 May 2018 02:36AM UTC 0
86.25
Travis Job 800.5
6 800.6 (UNCERTAINTIES="N" PYTHON="2.7" NUMPY_VERSION=0) 04 May 2018 02:38AM UTC 0
77.73
Travis Job 800.6
7 800.7 (UNCERTAINTIES="N" PYTHON="3.5" NUMPY_VERSION=0) 04 May 2018 02:38AM UTC 0
77.73
Travis Job 800.7
8 800.8 (UNCERTAINTIES="N" PYTHON="2.7" NUMPY_VERSION=1.14) 04 May 2018 02:40AM UTC 0
86.25
Travis Job 800.8
9 800.9 (UNCERTAINTIES="N" PYTHON="3.4" NUMPY_VERSION=1.14) 04 May 2018 02:41AM UTC 0
86.1
Travis Job 800.9
10 800.10 (UNCERTAINTIES="N" PYTHON="3.5" NUMPY_VERSION=1.14) 04 May 2018 02:41AM UTC 0
86.19
Travis Job 800.10
11 800.11 (UNCERTAINTIES="Y" PYTHON="3.5" NUMPY_VERSION=1.14) 04 May 2018 02:43AM UTC 0
88.12
Travis Job 800.11
12 800.12 (UNCERTAINTIES="N" PYTHON="3.6" NUMPY_VERSION=1.14) 04 May 2018 02:42AM UTC 0
86.1
Travis Job 800.12
Source Files on build 800
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #800
  • 0c4a9503 on github
  • Prev Build on staging (#798)
  • Next Build on staging (#811)
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