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

hgrecco / pint / 1699
92%
master: 91%

Build:
Build:
LAST BUILD BRANCH: fix-nonmult-doc
DEFAULT BRANCH: master
Ran 29 Mar 2020 07:46PM UTC
Jobs 16
Files 18
Run time 6min
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
1699

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 1699.1 (PKGS="python=3.7 flake8 black isort") 29 Mar 2020 07:46PM UTC 0
Travis Job 1699.1
2 1699.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") 29 Mar 2020 07:48PM UTC 0
Travis Job 1699.2
3 1699.3 (PKGS="python=3.6") 29 Mar 2020 07:47PM UTC 0
75.47
Travis Job 1699.3
4 1699.4 (PKGS="python=3.7") 29 Mar 2020 07:47PM UTC 0
75.47
Travis Job 1699.4
5 1699.5 (PKGS="python=3.8") 29 Mar 2020 07:47PM UTC 0
75.84
Travis Job 1699.5
6 1699.6 (PKGS="python=3.6 uncertainties=3.0") 29 Mar 2020 07:48PM UTC 0
88.29
Travis Job 1699.6
7 1699.7 (PKGS="python=3.7 uncertainties=3.0") 29 Mar 2020 07:49PM UTC 0
88.29
Travis Job 1699.7
8 1699.8 (PKGS="python=3.6 numpy=1.14 matplotlib") 29 Mar 2020 07:50PM UTC 0
85.07
Travis Job 1699.8
9 1699.9 (PKGS="python=3.7 numpy=1.14 matplotlib") 29 Mar 2020 07:50PM UTC 0
85.07
Travis Job 1699.9
10 1699.10 (PKGS="python=3.8 numpy=1.17 matplotlib") 29 Mar 2020 07:51PM UTC 0
87.57
Travis Job 1699.10
11 1699.11 (PKGS="python=3.6 numpy=1.14 uncertainties=3.0") 29 Mar 2020 07:50PM UTC 0
86.1
Travis Job 1699.11
12 1699.12 (PKGS="python=3.7 numpy=1.14 uncertainties=3.0") 29 Mar 2020 07:51PM UTC 0
86.1
Travis Job 1699.12
13 1699.13 (PKGS="python=3.6 numpy uncertainties") 29 Mar 2020 07:52PM UTC 0
88.29
Travis Job 1699.13
14 1699.14 (PKGS="python=3.7 numpy uncertainties") 29 Mar 2020 07:52PM UTC 0
88.29
Travis Job 1699.14
15 1699.15 (PKGS="python=3.8 numpy uncertainties") 29 Mar 2020 07:53PM UTC 0
88.41
Travis Job 1699.15
16 1699.16 (PKGS="python=3.8 numpy uncertainties sparse xarray netCDF4") 29 Mar 2020 07:53PM UTC 0
88.58
Travis Job 1699.16
Source Files on build 1699
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1699
  • 64a08e73 on github
  • Prev Build on staging (#1698)
  • Next Build on staging (#1701)
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