You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A =DimArray(fill(NaN, length(x), length(y)), (x=x, y=y))
B =copy(A)
A[1, 1] #NaN
B[1,1] =100.
A[1, 1] # NaN
copy of a Dictionary of DimArrays does not preform as expected:
# create a dictionary of DimArrays
A =Dict();
items = ["a", "b", "c"];
x =1:10;
y =1:10;
for item in items
push!(A, item =>DimArray(fill(NaN, length(x), length(y)), (x=x, y=y)))
end;
# copy A
B =copy(A);
A["a"][1,1] # NaN
B["a"][1, 1] =100.0;
A["a"][1, 1] # 100.0
The text was updated successfully, but these errors were encountered:
This behaviour surprised me:
copy of
DimArray
preforms as expected:copy of a
Dictionary
ofDimArrays
does not preform as expected:The text was updated successfully, but these errors were encountered: