resample: ValueError: x and y arrays must be equal in length along interpolation axis.
See original GitHub issueWhen trying to resample a dense variable (physio) with a sampling rate of 0.49999984750004656
the length of the x
given to interp1d
is one longer than values
. My guess is that this has to do with a rounding error with the funky sampling_rate.
Issue Analytics
- State:
- Created 5 years ago
- Comments:27 (3 by maintainers)
Top Results From Across the Web
x and y arrays must be equal in length along interpolation axis ...
I "plugged in" two arrays (filtered_mass and integrated_column), of same size, but it still give me ValueError that the sizes of the arrays...
Read more >scipy.interpolate.interp1d — SciPy v1.9.3 Manual
A N-D array of real values. The length of y along the interpolation axis must be equal to the length of x. kindstr...
Read more >SciPy interpolation ValueError: x and y arrays must be equal ...
I'm trying to work with interp1d of SciPy.interpolate. I "plugged in" two arrays (filtered_mass and integrated_column), of same size, but it still give...
Read more >[Solved]-Interpolation in SciPy: Finding X that produces Y-numpy
yToFind = 140 yreduced = np.array(y) - yToFind freduced = interpolate. ... ValueError: x and y arrays must be equal in length along...
Read more >Source code for pypeit.sampling
If (`y`) is 2D, the resampling is performed along the last axis (i.e., ... if x.size != self.y.shape[-1]: raise ValueError('Coordinate vector must match ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Possibly related to #355, #358?
Yeah, that makes sense. The resampling/densification code needs a complete overhaul. I have a plan for it, but need to find the time. Bunch of things to review in the next week or so, but probably after that.