I want to create some deeper nested structs. It seems the Setfield.jl package is sufficient to fill them. But I'm struggling with the initialization of the (empty) structs to fill them later iteratively. These are the structs looks like:
struct Bands
B0::String
B1::String
B2::String
B3::String
B4::String
B5::String
.
.
.
B25::String
end
struct Masks
mask1::Bands
mask2::Bands
mask3::Bands
mask4::Bands
mask5::Bands
mask6::String
end
I've tried inner constructors and as described here https://docs.julialang.org/en/v1/manual/constructors/#Incomplete-Initialization-1. It seems that I have to set all values before like described at https://jw3126.github.io/Setfield.jl/stable/intro/. How can I initialize the nested struct, in that case 131 values at once?