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

hgrecco / pint / 1555 / 16
92%
master: 91%

Build:
Build:
LAST BUILD BRANCH: fix-nonmult-doc
DEFAULT BRANCH: master
Ran 16 Jan 2020 06:05AM UTC
Files 18
Run time 1s
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

16 Jan 2020 05:57AM UTC coverage: 87.617%. Remained the same
PKGS="python xarray netCDF4"

push

travis-ci

web-flow
Merge #989

989: Allow constants in units by using leading underscore r=hgrecco a=jni

See #507 for discussion.

This change allows code like the following:

```python
In [1]: from pint import UnitRegistry                                              
In [2]: u = UnitRegistry()                                                         
In [3]: u.define('_100km = 100 * kilometer')                                       
In [4]: u.define('mpg = 1 * mile / gallon')                                        
In [5]: volt_petrol_ec = 5 * u.L / u._100km                                        
In [6]: (1 / volt_petrol_ec).to(u.mpg)                                             
Out[6]: 47.042916666666656 <Unit('mpg')>
```

- [x] Closes #507
- [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: Juan Nunez-Iglesias <juan.nunez-iglesias@monash.edu>

3453 of 3941 relevant lines covered (87.62%)

0.88 hits per line

Source Files on job 1555.16 (PKGS="python xarray netCDF4")
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1436
  • Travis Job 1555.16
  • 59d9d86f on github
  • Prev Job for PKGS="python xarray netCDF4" on staging (#1550.16)
  • Next Job for PKGS="python xarray netCDF4" on staging (#1572.16)
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