Skip to content
New issue

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

TimeArray of 3D values fails with a crash #504

Open
WaterQualityModels opened this issue Dec 11, 2021 · 0 comments
Open

TimeArray of 3D values fails with a crash #504

WaterQualityModels opened this issue Dec 11, 2021 · 0 comments

Comments

@WaterQualityModels
Copy link

WaterQualityModels commented Dec 11, 2021

From the docs (values::A # some kind of AbstractArray{T,N}), I was expecting to be able to handle a 3D array of values without issue (rand(6,5,2) isa AbstractArray = true), but apparently this is not supported. In addition, it fails by crashing out the session - basic example:

using TimeSeries
ts = collect(now():Dates.Minute(15):now()+Dates.Minute(15)*5);
data = rand(6,5,2)
ta = TimeArray(ts,data)

If run in VSCode, the error is handled a little better but still crashes the session:

┌ Error: Some Julia code in the VS Code extension crashed
└ @ VSCodeServer ~\.vscode\extensions\julialang.language-julia-1.5.6\scripts\error_handler.jl:15
ERROR: DimensionMismatch("mismatch in dimension 3 (expected 2 got 1)")

Aside from handling the error better, is there an intention for this data type to be supported? It seems pretty basic to me in terms of an array of covariates collected at multiple locations at a common schedule. Is it supported in another manner that I am just not implementing correctly?

Thanks in advance for any constructive comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant