Skip to content

Broadcast with xmap seems to be broken #510

@felixcremer

Description

@felixcremer

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.
```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions