Skip to content

Commit

Permalink
unwrap code simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
Laura Beghini committed Jan 14, 2024
1 parent 0468a58 commit 648f8bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Unwrap.jl
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ function find_wrapped_points(nav_norm::Array{Float64, 2}, trace_data_int::Array{
remove_extreme = findall(x -> meanval - deviation < x < meanval + deviation, trace_data_int[:,ii])
wrap_min = findmax(trace_data_int[remove_extreme,ii])[1] - ((findmax(trace_data_int[remove_extreme,ii])[1] - findmin(trace_data_int[remove_extreme,ii])[1]) .*0.28)
idx_pos = findall(x -> x >= wrap_min, trace_data_int[:,ii])
nav_add2pi = findall(x->x< -0.7, nav_norm[idx_pos,ii])
nav_add2pi = findall(x->x< -0.6, nav_norm[idx_pos,ii])
wrapped_points[idx_pos[nav_add2pi],ii] .= 1

end
Expand Down

0 comments on commit 648f8bb

Please sign in to comment.