Commit 94d65f67 authored by Ale's avatar Ale

bug

parent 80b1ca65
......@@ -7,7 +7,7 @@ function apply_rw(data::Array{Float64}, W::Matrix{Float64}, id::Union{String, No
if id == "J303" || id == "J303r003"
W_J303 = [1 for i in 1:length(data)]
W_J303[324] = W_J303[325] = W_J303[326] = -1
data_r = data .* W1 .* W2
data_r = data .* W1 .* W2 .* W_J303
return (data_r, W1 .* W2 .* W_J303)
elseif id == "H105r005"
flagged_cfg = [254, 255, 256, 257, 259, 260, 261, 264, 265, 266, 269, 280, 282, 283, 284, 285, 286, 287, 288, 289, 291, 299, 301, 313, 314, 315, 316, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342]
......@@ -15,7 +15,7 @@ function apply_rw(data::Array{Float64}, W::Matrix{Float64}, id::Union{String, No
for i in flagged_cfg
W_H105r005[i] = -1
end
data_r = data .* W1 .* W2
data_r = data .* W1 .* W2 .* W_H105r005
return (data_r, W1 .* W2 .* W_H105r005)
else
data_r = data .* W1 .* W2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment