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

hgrecco / pint / 801
91%

Build:
DEFAULT BRANCH: master
Ran 04 May 2018 02:45AM 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
801

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>

10 of 10 new or added lines in 1 file covered. (100.0%)

2844 of 3215 relevant lines covered (88.46%)

10.21 hits per line

Jobs
ID Job ID Ran Files Coverage
1 801.1 (UNCERTAINTIES="N" PYTHON="3.3" NUMPY_VERSION=1.9.2) 04 May 2018 02:45AM UTC 0
86.19
Travis Job 801.1
2 801.2 (UNCERTAINTIES="N" PYTHON="3.4" NUMPY_VERSION=1.11.2) 04 May 2018 02:46AM UTC 0
86.25
Travis Job 801.2
3 801.3 (UNCERTAINTIES="N" PYTHON="3.5" NUMPY_VERSION=1.11.2) 04 May 2018 02:46AM UTC 0
86.25
Travis Job 801.3
4 801.4 (UNCERTAINTIES="Y" PYTHON="3.5" NUMPY_VERSION=1.11.2) 04 May 2018 02:48AM UTC 0
88.18
Travis Job 801.4
5 801.5 (UNCERTAINTIES="N" PYTHON="3.6" NUMPY_VERSION=1.11.2) 04 May 2018 02:46AM UTC 0
86.16
Travis Job 801.5
6 801.6 (UNCERTAINTIES="N" PYTHON="2.7" NUMPY_VERSION=0) 04 May 2018 02:48AM UTC 0
77.73
Travis Job 801.6
7 801.7 (UNCERTAINTIES="N" PYTHON="3.5" NUMPY_VERSION=0) 04 May 2018 02:48AM UTC 0
77.73
Travis Job 801.7
8 801.8 (UNCERTAINTIES="N" PYTHON="2.7" NUMPY_VERSION=1.14) 04 May 2018 02:49AM UTC 0
86.25
Travis Job 801.8
9 801.9 (UNCERTAINTIES="N" PYTHON="3.4" NUMPY_VERSION=1.14) 04 May 2018 02:50AM UTC 0
86.19
Travis Job 801.9
10 801.10 (UNCERTAINTIES="N" PYTHON="3.5" NUMPY_VERSION=1.14) 04 May 2018 02:51AM UTC 0
86.19
Travis Job 801.10
11 801.11 (UNCERTAINTIES="Y" PYTHON="3.5" NUMPY_VERSION=1.14) 04 May 2018 02:52AM UTC 0
88.12
Travis Job 801.11
12 801.12 (UNCERTAINTIES="N" PYTHON="3.6" NUMPY_VERSION=1.14) 04 May 2018 02:52AM UTC 0
86.1
Travis Job 801.12
Source Files on build 801
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #801
  • 0c4a9503 on github
  • Prev Build on master (#799)
  • Next Build on master (#812)
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