You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
julia> test = [1 2 3 4]u"V"
1×4 Matrix{Quantity{Int64, 𝐋^2 𝐌 𝐈^-1 𝐓^-3, Unitful.FreeUnits{(V,), 𝐋^2 𝐌 𝐈^-1 𝐓^-3, nothing}}}:
1 V 2 V 3 V 4 V
julia> resample(test, 1//2, dims=2)
ERROR: DimensionError: V and 0.0 are not dimensionally compatible.
Am I missing some important point or is DSP.jl not working together with Unitful (yet)? I could not find any issues related to it, but I think it would be an awesome improvement of the package to be able to work with units.
Cheers
Jonas
The text was updated successfully, but these errors were encountered:
Sure, if we can make this just work, that would certainly be nice. And we can do this one by one. But someone has to do the work, and apparently, those who have been contributing to DSP so far did not care too much about compatibility with Unitful, so they may not be too motivated to do so now. But if you want to give it a shot, a PR would be welcome.
Hi,
I just tried to resample a signal which is supplied as Unitful volts.
This runs fine:
But this doesn't
Am I missing some important point or is DSP.jl not working together with Unitful (yet)? I could not find any issues related to it, but I think it would be an awesome improvement of the package to be able to work with units.
Cheers
Jonas
The text was updated successfully, but these errors were encountered: