YAXArrays.jl icon indicating copy to clipboard operation
YAXArrays.jl copied to clipboard

Broadcast with xmap seems to be broken

Open felixcremer opened this issue 6 months ago • 0 comments

When I make a nested broadcast with YAXArrays I get now the following error after the switch to xmap. This comes from the line @time savecube(Int8.(miss2zero.(europeras)), "data/europe_2020_nan_chunkfillarray.zarr", fill_value=Int8(0), overwrite=true)

I haven't searched for a proper minimal example yet.

ERROR: MethodError: no method matching XFunction(::Type{Int8}; inplace::Bool)
The type `XFunction` exists, but no method is defined for this combination of argument types when trying to construct it.

Closest candidates are:
  XFunction(::F, ::O, ::I, ::Bool) where {F, O, I} got unsupported keyword argument "inplace"
   @ YAXArrays /mnt/felix1/worldmap/dev/YAXArrays/src/DAT/xmap.jl:313
  XFunction(::XFunction; kwargs...)
   @ YAXArrays /mnt/felix1/worldmap/dev/YAXArrays/src/DAT/xmap.jl:347
  XFunction(::Function; outputs, inputs, inplace)
   @ YAXArrays /mnt/felix1/worldmap/dev/YAXArrays/src/DAT/xmap.jl:344

Stacktrace:
 [1] broadcasted(::YAXArrays.Xmap.XStyle, f::Type, args::YAXArray{…})
   @ YAXArrays.Xmap /mnt/felix1/worldmap/dev/YAXArrays/src/DAT/broadcast.jl:10
 [2] broadcasted(::Type{Int8}, ::YAXArray{Union{…}, 2, DiskArrayEngine.GMWOPResult{…}, Tuple{…
}, Dict{…}})
   @ Base.Broadcast ./broadcast.jl:1325
 [3] macro expansion
   @ ./timing.jl:581 [inlined]
 [4] top-level scope
   @ ./REPL[50]:1
Some type information was truncated. Use `show(err)` to see complete types.
```

felixcremer avatar Jun 10 '25 05:06 felixcremer