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

hgrecco / pint / 1701
92%
master: 91%

Build:
Build:
LAST BUILD BRANCH: fix-nonmult-doc
DEFAULT BRANCH: master
Ran 01 Apr 2020 10:04PM UTC
Jobs 16
Files 18
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
1701

push

travis-ci

web-flow
Merge #1061

1061: allow passing mixed args to interp r=hgrecco a=keewis

When trying to pass something that I would consider as valid to `interp`, it fails:
```python
In [4]: x = np.arange(10) 
   ...: xi = np.arange(11, 13) 
   ...: y = np.linspace(0, 1, 10) * ureg.m 
   ...:  
   ...: np.interp(xi, x, y)
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-4-0f23c156c96d> in <module>
      3 y = np.linspace(0, 1, 10) * ureg.m
      4 
----> 5 np.interp(xi, x, y)

<__array_function__ internals> in interp(*args, **kwargs)

.../pint/quantity.py in __array_function__(self, func, types, args, kwargs)
   1548 
   1549     def __array_function__(self, func, types, args, kwargs):
-> 1550         return numpy_wrap("function", func, args, kwargs, types)
   1551 
   1552     _wrapped_numpy_methods = ["flatten", "astype", "item"]

.../pint/numpy_func.py in numpy_wrap(func_type, func, args, kwargs, types)
    870     if name not in handled or any(is_upcast_type(t) for t in types):
    871         return NotImplemented
--> 872     return handled[name](*args, **kwargs)

.../pint/numpy_func.py in _interp(x, xp, fp, left, right, period)
    534     # Need to handle x and y units separately
    535     print("x, xp", x, xp, sep="\n -- ")
--> 536     (x, xp, period), _ = unwrap_and_wrap_consistent_units(x, xp, period)
    537     (fp, right, left), output_wrap = unwrap_and_wrap_consistent_units(fp, left, right)
    538     return output_wrap(np.interp(x, xp, fp, left=left, right=right, period=period))

.../pint/numpy_func.py in unwrap_and_wrap_consistent_units(*args)
    121 
    122     """
--> 123     first_input_units = _get_first_input_units(args)
    124     args, _ = convert_to_consistent_units(*args, pre_calc_units=first_input_units)
    125     return (

.../pint/numpy_func.py in _get_first_input_units(arg... (continued)

3575 of 3977 relevant lines covered (89.89%)

11.86 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1701.1 (PKGS="python=3.7 flake8 black isort") 01 Apr 2020 10:04PM UTC 0
Travis Job 1701.1
2 1701.2 (PKGS="python=3.7 ipython matplotlib nbsphinx numpy sphinx Pygments==2.3.1 docutils==0.14 alabaster commonmark==0.8.1 recommonmark==0.5.0") 01 Apr 2020 10:05PM UTC 0
Travis Job 1701.2
3 1701.3 (PKGS="python=3.6") 01 Apr 2020 10:05PM UTC 0
75.47
Travis Job 1701.3
4 1701.4 (PKGS="python=3.7") 01 Apr 2020 10:05PM UTC 0
75.47
Travis Job 1701.4
5 1701.5 (PKGS="python=3.8") 01 Apr 2020 10:05PM UTC 0
75.84
Travis Job 1701.5
6 1701.6 (PKGS="python=3.6 uncertainties=3.0") 01 Apr 2020 10:06PM UTC 0
88.29
Travis Job 1701.6
7 1701.7 (PKGS="python=3.7 uncertainties=3.0") 01 Apr 2020 10:07PM UTC 0
88.29
Travis Job 1701.7
8 1701.8 (PKGS="python=3.6 numpy=1.14 matplotlib") 01 Apr 2020 10:07PM UTC 0
85.07
Travis Job 1701.8
9 1701.9 (PKGS="python=3.7 numpy=1.14 matplotlib") 01 Apr 2020 10:08PM UTC 0
85.07
Travis Job 1701.9
10 1701.10 (PKGS="python=3.8 numpy=1.17 matplotlib") 01 Apr 2020 10:08PM UTC 0
87.5
Travis Job 1701.10
11 1701.11 (PKGS="python=3.6 numpy=1.14 uncertainties=3.0") 01 Apr 2020 10:09PM UTC 0
86.1
Travis Job 1701.11
12 1701.12 (PKGS="python=3.7 numpy=1.14 uncertainties=3.0") 01 Apr 2020 10:09PM UTC 0
86.1
Travis Job 1701.12
13 1701.13 (PKGS="python=3.6 numpy uncertainties") 01 Apr 2020 10:09PM UTC 0
88.29
Travis Job 1701.13
14 1701.14 (PKGS="python=3.7 numpy uncertainties") 01 Apr 2020 10:10PM UTC 0
88.29
Travis Job 1701.14
15 1701.15 (PKGS="python=3.8 numpy uncertainties") 01 Apr 2020 10:10PM UTC 0
88.48
Travis Job 1701.15
16 1701.16 (PKGS="python=3.8 numpy uncertainties sparse xarray netCDF4") 01 Apr 2020 10:11PM UTC 0
88.58
Travis Job 1701.16
Source Files on build 1701
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1701
  • cf2de30f on github
  • Prev Build on staging (#1699)
  • Next Build on staging (#1703)
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