Commit 80b1ca65 authored by Ale's avatar Ale

bug

parent 70c48a84
......@@ -29,7 +29,7 @@ function apply_rw(data::Vector{<:Array{Float64}}, W::Vector{Matrix{Float64}}, id
end
nc = size.(data, 1)
if id == "J303" || id == "J303r003"
W_J303 = [1 for i in 1:length(data[1])]
W_J303 = [1 for i in 1:nc[1]]
W_J303[324] = W_J303[325] = W_J303[326] = -1
rw1 = [W[k][1, 1:nc[k]] for k=1:length(W)]
rw2 = [W[k][2, 1:nc[k]] for k=1:length(W)]
......@@ -40,7 +40,7 @@ function apply_rw(data::Vector{<:Array{Float64}}, W::Vector{Matrix{Float64}}, id
return (data_r, rw)
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]
W_H105r005 = [1 for i in 1:length(data[1])]
W_H105r005 = [1 for i in 1:nc[1]]
for i in flagged_cfg
W_H105r005[i] = -1
end
......@@ -52,9 +52,9 @@ function apply_rw(data::Vector{<:Array{Float64}}, W::Vector{Matrix{Float64}}, id
data_r = [data[k] .* rw[k] for k=1:length(data)]
return (data_r, rw)
elseif id == "H105r001" || id == "H105"
W_H105r001 = [1 for i in 1:length(data[1])]
W_H105r001 = [1 for i in 1:nc[1]]
W_H105r001[100] = W_H105r001[105] = W_H105r001[106] = -1
W_H105r002 = [1 for i in 1:length(data[2])]
W_H105r002 = [1 for i in 1:nc[2]]
W_H105r002[1] = -1
rw1 = [W[k][1, 1:nc[k]] for k=1:length(W)]
rw2 = [W[k][2, 1:nc[k]] for k=1:length(W)]
......
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