pybids: resample: ValueError: x and y arrays must be equal in length along interpolation axis.
When 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.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 27 (3 by maintainers)
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.
f936aedcf36f715914816597d692ca37f9297f55