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

hgrecco / pint / 1807
91%

Build:
DEFAULT BRANCH: master
Ran 18 Jun 2020 08:43PM UTC
Jobs 16
Files 18
Run time 8min
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
1807

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>

3632 of 4032 relevant lines covered (90.08%)

11.82 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1807.1 (PKGS="python=3.7 flake8 black isort") 18 Jun 2020 08:43PM UTC 0
0.0
Travis Job 1807.1
2 1807.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:46PM UTC 0
0.0
Travis Job 1807.2
3 1807.3 (PKGS="python=3.6") 18 Jun 2020 08:43PM UTC 0
75.06
Travis Job 1807.3
4 1807.4 (PKGS="python=3.7") 18 Jun 2020 08:43PM UTC 0
75.06
Travis Job 1807.4
5 1807.5 (PKGS="python=3.8") 18 Jun 2020 08:43PM UTC 0
75.39
Travis Job 1807.5
6 1807.6 (PKGS="python=3.6 uncertainties=3.0") 18 Jun 2020 08:46PM UTC 0
88.35
Travis Job 1807.6
7 1807.7 (PKGS="python=3.7 uncertainties=3.0") 18 Jun 2020 08:46PM UTC 0
88.27
Travis Job 1807.7
8 1807.8 (PKGS="python=3.6 numpy=1.14 matplotlib") 18 Jun 2020 08:47PM UTC 0
84.53
Travis Job 1807.8
9 1807.9 (PKGS="python=3.7 numpy=1.14 matplotlib") 18 Jun 2020 08:46PM UTC 0
84.53
Travis Job 1807.9
10 1807.10 (PKGS="python=3.8 numpy=1.17 matplotlib") 18 Jun 2020 08:49PM UTC 0
87.5
Travis Job 1807.10
11 1807.11 (PKGS="python=3.6 numpy=1.14 uncertainties=3.0") 18 Jun 2020 08:48PM UTC 0
85.64
Travis Job 1807.11
12 1807.12 (PKGS="python=3.7 numpy=1.14 uncertainties=3.0") 18 Jun 2020 08:48PM UTC 0
85.64
Travis Job 1807.12
13 1807.13 (PKGS="python=3.6 numpy uncertainties") 18 Jun 2020 08:49PM UTC 0
88.27
Travis Job 1807.13
14 1807.14 (PKGS="python=3.7 numpy uncertainties") 18 Jun 2020 08:49PM UTC 0
88.27
Travis Job 1807.14
15 1807.15 (PKGS="python=3.8 numpy uncertainties") 18 Jun 2020 08:51PM UTC 0
88.5
Travis Job 1807.15
16 1807.16 (PKGS="python=3.8 numpy uncertainties sparse xarray netCDF4") 18 Jun 2020 08:51PM UTC 0
88.52
Travis Job 1807.16
Source Files on build 1807
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1807
  • 2a07e98e on github
  • Prev Build on master (#1805)
  • Next Build on master (#1810)
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