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

Align of empty array constructs unusable object #32

Closed
yha opened this issue Aug 17, 2022 · 1 comment
Closed

Align of empty array constructs unusable object #32

yha opened this issue Aug 17, 2022 · 1 comment

Comments

@yha
Copy link

yha commented Aug 17, 2022

julia> x = [rand(3) for _=1:0]
Vector{Float64}[]

julia> a = Align(x, 1);

julia> size(a)
ERROR: BoundsError: attempt to access 0-element Vector{Vector{Float64}} at index [1]
[...]

julia> a
Error showing value of type Align{Float64, 2, Vector{Vector{Float64}}, Tuple{True, False}}:
ERROR: BoundsError: attempt to access 0-element Vector{Vector{Float64}} at index [1]
[...]

Should probably fail at construction instead.
(similar to #25, which I think should already be closed?)

@bramtayl
Copy link
Owner

Thanks for the report! This should be closed by #33.

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

2 participants