Closed dpabon closed 1 year ago
Probably this is a YAXArrays.jl or DiskArrayTools.jl issue?
Not really because the error is pointing first to DiskArrays. I made a mistake in the code above. I forgot to call everywhere
using Pkg
Pkg.activate("/Net/Groups/BGI/people/dpabon/nfdi4earth_oemc")
I have edited accordingly
Ok, for some reason the environment was not properly activated on each one of the workers, producing that some workers loaded the previous version 0.3.8
of DiskArrays. This is solved if you call ``Pkg.instantiate()``` after activating the environment.
using Pkg
Pkg.activate("/Net/Groups/BGI/people/dpabon/nfdi4earth_oemc")
Pkg.instantiate()
using YAXArrays
using Zarr
using SlurmClusterManager
addprocs(10)
@everywhere begin
using Pkg
Pkg.activate("/Net/Groups/BGI/people/dpabon/nfdi4earth_oemc")
using YAXArrays
using Zarr
function simple_function(out1, cube_in1, cube_in2)
#=
out1 .= 1
=#
end
end
Thanks to @meggart for the solution!
Here a minimal working example:
produce: