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

hgrecco / pint / 1806
92%
master: 91%

Build:
Build:
LAST BUILD BRANCH: fix-nonmult-doc
DEFAULT BRANCH: master
Ran 18 Jun 2020 08:32PM UTC
Jobs 16
Files 18
Run time 10min
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
1806

push

travis-ci

web-flow
Merge #1120

1120: revise the unit computation for np.prod r=hgrecco a=keewis

#1087 left out the case where `axis` and `where` are specified and also used the size of the result to compute the output unit if only `axis` was specified. This changes that to use `a.shape[axis]` instead and also implements the support for both `axis` and `where` by broadcasting `where` against the array, applying `np.sum` along `axis` and using the only one unique value (`0` doesn't count) as an exponent. In case there's more than that, it will try to cast to `dimensionless`.

I'm not quite sure if using `np.broadcast_arrays` is the best way to get the exponents, though.

Edit: **Todo**: make the error message easier to understand

- [x] Closes #867
- [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


Co-authored-by: Keewis <keewis@posteo.de>

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

3626 of 4032 relevant lines covered (89.93%)

11.83 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1806.1 (PKGS="python=3.7 flake8 black isort") 18 Jun 2020 08:32PM UTC 0
0.0
Travis Job 1806.1
2 1806.2 (PKGS="python=3.7 ipython matplotlib nbsphinx numpy pandas jupyter_client ipykernel python-graphviz graphviz xarray sparse dask[complete] sphinx Pygments==2.3.1 docutils==0.14 alabaster commonmark==0.8.1 recommonmark==0.5.0") 18 Jun 2020 08:34PM UTC 0
0.0
Travis Job 1806.2
3 1806.3 (PKGS="python=3.6") 18 Jun 2020 08:33PM UTC 0
75.06
Travis Job 1806.3
4 1806.4 (PKGS="python=3.7") 18 Jun 2020 08:34PM UTC 0
75.06
Travis Job 1806.4
5 1806.5 (PKGS="python=3.8") 18 Jun 2020 08:35PM UTC 0
75.39
Travis Job 1806.5
6 1806.6 (PKGS="python=3.6 uncertainties=3.0") 18 Jun 2020 08:36PM UTC 0
88.35
Travis Job 1806.6
7 1806.7 (PKGS="python=3.7 uncertainties=3.0") 18 Jun 2020 08:36PM UTC 0
88.35
Travis Job 1806.7
8 1806.8 (PKGS="python=3.6 numpy=1.14 matplotlib") 18 Jun 2020 08:37PM UTC 0
84.53
Travis Job 1806.8
9 1806.9 (PKGS="python=3.7 numpy=1.14 matplotlib") 18 Jun 2020 08:37PM UTC 0
84.53
Travis Job 1806.9
10 1806.10 (PKGS="python=3.8 numpy=1.17 matplotlib") 18 Jun 2020 08:37PM UTC 0
87.43
Travis Job 1806.10
11 1806.11 (PKGS="python=3.6 numpy=1.14 uncertainties=3.0") 18 Jun 2020 08:39PM UTC 0
85.64
Travis Job 1806.11
12 1806.12 (PKGS="python=3.7 numpy=1.14 uncertainties=3.0") 18 Jun 2020 08:39PM UTC 0
85.64
Travis Job 1806.12
13 1806.13 (PKGS="python=3.6 numpy uncertainties") 18 Jun 2020 08:39PM UTC 0
88.35
Travis Job 1806.13
14 1806.14 (PKGS="python=3.7 numpy uncertainties") 18 Jun 2020 08:39PM UTC 0
88.35
Travis Job 1806.14
15 1806.15 (PKGS="python=3.8 numpy uncertainties") 18 Jun 2020 08:40PM UTC 0
88.5
Travis Job 1806.15
16 1806.16 (PKGS="python=3.8 numpy uncertainties sparse xarray netCDF4") 18 Jun 2020 08:41PM UTC 0
88.59
Travis Job 1806.16
Source Files on build 1806
  • Tree
  • List 18
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #1806
  • 2a07e98e on github
  • Prev Build on staging (#1804)
  • Next Build on staging (#1809)
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

© 2025 Coveralls, Inc