Skip to content

Commit 1939a07

Browse files
committed
Fix buildpyramids
1 parent 7fd8b1b commit 1939a07

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/PyramidScheme.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,8 @@ The data is aggregated with the specified `resampling_method`.
322322
Keyword arguments are forwarded to the `fill_pyramids` function.
323323
"""
324324
function buildpyramids(path::AbstractString; resampling_method=mean, recursive=true, runner=LocalRunner, verbose=false)
325-
if !isa(YAB.backendfrompath(path),YAB.backendlist[:zarr])
325+
if YAB.backendfrompath(path) != YAB.backendlist[:zarr]
326+
@show YAB.backendfrompath(path)
326327
throw(ArgumentError("$path is not a Zarr dataset therefore we can't build the Pyramids inplace"))
327328
end
328329

0 commit comments

Comments
 (0)