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
The sigma_clip function modifies the original array, which it should not do. The mutating behavior should be reserved for the sigma_clip! function, while sigma_clip should return a new array without altering the original one.
Here is an example following the one presented in the documentation:
julia> x = randn(100_000);
julia> extrema(x)
(-4.319272752707137, 4.141796263661749)
julia> x_clip = sigma_clip(x, 1);
julia> extrema(x_clip)
(-1.00008381672931, 0.9976227973860834)
julia> extrema(x) # It should be like the original, but it's not
(-1.00008381672931, 0.9976227973860834)
Expected Behavior:
The sigma_clip function should return a new array without modifying x.
Only sigma_clip! should modify the original array.
Environment:
Julia Version: 1.11.1 (but also 1.10...)
Package Version: latest
The text was updated successfully, but these errors were encountered:
The sigma_clip function modifies the original array, which it should not do. The mutating behavior should be reserved for the sigma_clip! function, while sigma_clip should return a new array without altering the original one.
Here is an example following the one presented in the documentation:
Expected Behavior:
The sigma_clip function should return a new array without modifying x.
Only sigma_clip! should modify the original array.
Environment:
Julia Version: 1.11.1 (but also 1.10...)
Package Version: latest
The text was updated successfully, but these errors were encountered: