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

hgrecco / pint / 1418
92%
master: 91%

Build:
Build:
LAST BUILD BRANCH: fix-nonmult-doc
DEFAULT BRANCH: master
Ran 21 Dec 2019 03:03AM UTC
Jobs 13
Files 170
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
1418

push

travis-ci

web-flow
Merge #940

940: Reimplement cumulative product NumPy functions r=hgrecco a=jthielen

This PR resolves two issues from #905 that were identified in #939:

First, `convert_arg` in `numpy_func.py` presumes `pre_calc_units` is a `Unit` or `None`, but there are instances where it was passed a string by way of `inputs_units` in `implement_func`. Now, any `inputs_units` as a string are converted to a `Unit` before being passed to `convert_to_consistent_units`.

Second, the cumulative product functions were using `implement_func` with `input_units` set to something other than `None`, which was incorrect, since these functions have arguments that should not have units (namely `axis`). These functions have been reimplemented accordingly.

- [x] Closes #939 
- [x] Executed ``black -t py36 . && isort -rc . && flake8`` with no errors
- [x] The change is fully covered by automated unit tests
- ~~Documented in docs/ as appropriate~~
- ~~Added an entry to the CHANGES file~~ (fixup to previous change: #905)


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

31252 of 36501 relevant lines covered (85.62%)

10.19 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1418.1 (PKGS="python=3.7 flake8 black isort") 21 Dec 2019 03:03AM UTC 0
Travis Job 1418.1
2 1418.2 (PKGS="python=3.6") 21 Dec 2019 03:03AM UTC 0
76.36
Travis Job 1418.2
3 1418.3 (PKGS="python=3.7") 21 Dec 2019 03:03AM UTC 0
76.36
Travis Job 1418.3
4 1418.4 (PKGS="python=3.8") 21 Dec 2019 03:03AM UTC 0
76.63
Travis Job 1418.4
5 1418.5 (PKGS="python=3.6 uncertainties=3.0") 21 Dec 2019 03:04AM UTC 0
89.37
Travis Job 1418.5
6 1418.6 (PKGS="python=3.7 uncertainties=3.0") 21 Dec 2019 03:05AM UTC 0
89.37
Travis Job 1418.6
7 1418.7 (PKGS="python=3.6 numpy=1.14") 21 Dec 2019 03:05AM UTC 0
85.35
Travis Job 1418.7
8 1418.8 (PKGS="python=3.7 numpy=1.14") 21 Dec 2019 03:05AM UTC 0
85.35
Travis Job 1418.8
9 1418.9 (PKGS="python=3.8 numpy=1.17") 21 Dec 2019 03:05AM UTC 0
87.67
Travis Job 1418.9
10 1418.10 (PKGS="python=3.6 numpy=1.14 uncertainties=3.0") 21 Dec 2019 03:06AM UTC 0
87.26
Travis Job 1418.10
11 1418.11 (PKGS="python=3.7 numpy=1.14 uncertainties=3.0") 21 Dec 2019 03:07AM UTC 0
87.26
Travis Job 1418.11
13 1418.13 (PKGS="python=3.7 numpy uncertainties") 21 Dec 2019 03:07AM UTC 0
89.37
Travis Job 1418.13
14 1418.14 (PKGS="python=3.8 numpy uncertainties") 21 Dec 2019 03:07AM UTC 0
89.55
Travis Job 1418.14
Source Files on build 1418
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1418
  • a7ec41c1 on github
  • Prev Build on develop (#949)
  • Next Build on develop (#1419)
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