We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hey, seems there's a bug in a call to lagfill:
lagfill
ERROR: MethodError: no method matching lagfill(::TimeArray{Float64, 2, DateTime, Matrix{Float64}}, ::Int64, ::Matrix{Float64}) Closest candidates are: lagfill(::TimeArray, ::Integer, ::AbstractFloat) at /home/joe/.julia/packages/MarketTechnicals/5qm8H/src/utilities.jl:90 Stacktrace: [1] dpo(ta::TimeArray{Float64, 2, DateTime, Matrix{Float64}}, n::Int64) @ MarketTechnicals ~/.julia/packages/MarketTechnicals/5qm8H/src/momentum.jl:350
It happens when it's used on a TimeArray with second dim > 1 as far as I can tell.
TimeArray
Something like this
function lagfill(ta::TimeArray, r1::Integer, fill::AbstractMatrix{T}) where T<:AbstractFloat @assert size(fill, 2) == size(ta, 2) _lta = lag(ta, r1, padding = true) _lta_values = values(_lta) for i in 1:r1 _lta_values[i, :] = fill end TimeArray(timestamp(ta), _lta_values, colnames(ta)) end
Should fix it.
The text was updated successfully, but these errors were encountered:
ah, could you send a PR for it?
Sorry, something went wrong.
No branches or pull requests
Hey, seems there's a bug in a call to
lagfill
:It happens when it's used on a
TimeArray
with second dim > 1 as far as I can tell.Something like this
Should fix it.
The text was updated successfully, but these errors were encountered: