We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e58653 commit 911282dCopy full SHA for 911282d
1 file changed
src/TensorStoreWrapper.jl
@@ -236,8 +236,9 @@ end
236
Base.size(w::IndexDomainWrapper) = pyconvert(Tuple, parent(w).shape)
237
function Base.size(w::IndexDomainWrapper, d::Integer)
238
d < 1 && throw(ArgumentError("dimension must be ≥ 1"))
239
+ d > ndims(w) && return 1
240
di = Base.to_index(d)
- return d <= ndims(w) ? pyconvert(Int, parent(w).shape[di-1]) : 1
241
+ return pyconvert(Int, parent(w).shape[di-1])
242
end
243
Base.ndims(w::IndexDomainWrapper) = pyconvert(Int, parent(w).rank)
244
function Base.axes(w::IndexDomainWrapper)
0 commit comments